clang  3.7.0
Macros | Functions
ParseExprCXX.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "RAIIObjectsForParser.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Basic/PrettyStackTrace.h"
#include "clang/Lex/LiteralSupport.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.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 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
#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 ArrayTypeTrait ArrayTypeTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2848 of file ParseExprCXX.cpp.

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

static ExpressionTrait ExpressionTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2856 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 unsigned TypeTraitArity ( tok::TokenKind  kind)
static

Definition at line 2864 of file ParseExprCXX.cpp.

static TypeTrait TypeTraitFromTokKind ( tok::TokenKind  kind)
static

Definition at line 2834 of file ParseExprCXX.cpp.