Go to the source code of this file.
Defines |
#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) |
Define Documentation
Value:case tok::Token: \
SymbolLocations[SymbolIdx++] = ConsumeToken(); \
Op = OO_##Name; \
break;
#define TYPE_TRAIT |
( |
|
N, |
|
|
|
Spelling, |
|
|
|
K |
|
) |
| 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
Definition at line 51 of file ParseExprCXX.cpp.
References clang::FixItHint::CreateReplacement(), clang::Parser::Diag(), clang::Preprocessor::EnterToken(), clang::Token::getLocation(), clang::SourceLocation::getLocWithOffset(), clang::Preprocessor::Lex(), SelectDigraphErrorMessage(), clang::SourceRange::setBegin(), clang::SourceRange::setEnd(), clang::Token::setKind(), clang::Token::setLength(), and clang::Token::setLocation().