clang  5.0.0
Macros | Functions
ParseExprCXX.cpp File Reference
#include "clang/Parse/Parser.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Basic/PrettyStackTrace.h"
#include "clang/Lex/LiteralSupport.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/DeclSpec.h"
#include "clang/Sema/ParsedTemplate.h"
#include "clang/Sema/Scope.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/Basic/OperatorKinds.def"
#include "clang/Basic/TokenKinds.def"
Include dependency graph for ParseExprCXX.cpp:

Go to the source code of this file.

Macros

#define OVERLOADED_OPERATOR(Name, Spelling, Token, Unary, Binary, MemberOnly)
 
#define OVERLOADED_OPERATOR_MULTI(Name, Spelling, Unary, Binary, MemberOnly)
 
#define TYPE_TRAIT_1(Spelling, Name, Key)   case tok::kw_ ## Spelling: return UTT_ ## Name;
 
#define TYPE_TRAIT_2(Spelling, Name, Key)   case tok::kw_ ## Spelling: return BTT_ ## Name;
 
#define TYPE_TRAIT_N(Spelling, Name, Key)   case tok::kw_ ## Spelling: return TT_ ## Name;
 
#define TYPE_TRAIT(N, Spelling, K)   case tok::kw_##Spelling: return N;
 

Functions

static int SelectDigraphErrorMessage (tok::TokenKind Kind)
 
static void FixDigraph (Parser &P, Preprocessor &PP, Token &DigraphToken, Token &ColonToken, tok::TokenKind Kind, bool AtDigraph)
 
static void tryConsumeMutableOrConstexprToken (Parser &P, SourceLocation &MutableLoc, SourceLocation &ConstexprLoc, SourceLocation &DeclEndLoc)
 
static void addConstexprToLambdaDeclSpecifier (Parser &P, SourceLocation ConstexprLoc, DeclSpec &DS)
 
static TypeTrait TypeTraitFromTokKind (tok::TokenKind kind)
 
static ArrayTypeTrait ArrayTypeTraitFromTokKind (tok::TokenKind kind)
 
static ExpressionTrait ExpressionTraitFromTokKind (tok::TokenKind kind)
 
static unsigned TypeTraitArity (tok::TokenKind kind)
 

Macro Definition Documentation

#define OVERLOADED_OPERATOR (   Name,
  Spelling,
  Token,
  Unary,
  Binary,
  MemberOnly 
)
Value:
case tok::Token: \
SymbolLocations[SymbolIdx++] = ConsumeToken(); \
Op = OO_##Name; \
break;
FormatToken * Token
StringRef Name
Definition: USRFinder.cpp:123
#define OVERLOADED_OPERATOR_MULTI (   Name,
  Spelling,
  Unary,
  Binary,
  MemberOnly 
)
#define TYPE_TRAIT (   N,
  Spelling,
 
)    case tok::kw_##Spelling: return N;
#define TYPE_TRAIT_1 (   Spelling,
  Name,
  Key 
)    case tok::kw_ ## Spelling: return UTT_ ## Name;
#define TYPE_TRAIT_2 (   Spelling,
  Name,
  Key 
)    case tok::kw_ ## Spelling: return BTT_ ## Name;
#define TYPE_TRAIT_N (   Spelling,
  Name,
  Key 
)    case tok::kw_ ## Spelling: return TT_ ## Name;

Function Documentation

static void addConstexprToLambdaDeclSpecifier ( Parser P,
SourceLocation  ConstexprLoc,
DeclSpec DS 
)
static
static ArrayTypeTrait ArrayTypeTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2919 of file ParseExprCXX.cpp.

References clang::ATT_ArrayExtent, and clang::ATT_ArrayRank.

static ExpressionTrait ExpressionTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2927 of file ParseExprCXX.cpp.

References clang::ET_IsLValueExpr, and clang::ET_IsRValueExpr.

static void FixDigraph ( Parser P,
Preprocessor PP,
Token DigraphToken,
Token ColonToken,
tok::TokenKind  Kind,
bool  AtDigraph 
)
static
static int SelectDigraphErrorMessage ( tok::TokenKind  Kind)
static

Definition at line 28 of file ParseExprCXX.cpp.

Referenced by FixDigraph().

static void tryConsumeMutableOrConstexprToken ( Parser P,
SourceLocation MutableLoc,
SourceLocation ConstexprLoc,
SourceLocation DeclEndLoc 
)
static
static unsigned TypeTraitArity ( tok::TokenKind  kind)
static

Definition at line 2935 of file ParseExprCXX.cpp.

static TypeTrait TypeTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2905 of file ParseExprCXX.cpp.