/external/clang/bindings/python/tests/cindex/ |
test_token_kind.py | 1 from clang.cindex import TokenKind 7 """Ensure TokenKind constructor works as expected.""" 9 t = TokenKind(5, 'foo') 18 TokenKind.register(2, 'foo') 24 TokenKind.from_value(-1) 28 ok_(hasattr(TokenKind, 'LITERAL')) 29 literal = TokenKind.LITERAL 31 ok_(isinstance(literal, TokenKind)) 35 t = TokenKind.from_value(3) 36 ok_(isinstance(t, TokenKind)) [all...] |
test_tokens.py | 5 from clang.cindex import TokenKind 19 assert tokens[1].kind == TokenKind.IDENTIFIER
|
/external/clang/lib/Basic/ |
TokenKinds.cpp | 10 // This file implements the TokenKind enum and support functions. 25 const char *tok::getTokenName(enum TokenKind Kind) { 30 const char *tok::getTokenSimpleSpelling(enum TokenKind Kind) {
|
OperatorPrecedence.cpp | 18 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
|
IdentifierTable.cpp | 121 tok::TokenKind TokenCode, unsigned Flags, 157 tok::TokenKind TokenCode,
|
/external/clang/include/clang/Basic/ |
TokenKinds.h | 11 /// \brief Defines the clang::TokenKind enum and support functions. 23 enum TokenKind { 55 const char *getTokenName(enum TokenKind Kind); 64 const char *getTokenSimpleSpelling(enum TokenKind Kind); 67 inline bool isAnyIdentifier(TokenKind K) { 73 inline bool isStringLiteral(TokenKind K) { 81 inline bool isLiteral(TokenKind K) { 89 inline bool isAnnotation(TokenKind K) {
|
OperatorPrecedence.h | 47 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
|
IdentifierTable.h | 154 tok::TokenKind getTokenID() const { return (tok::TokenKind)TokenID; } 478 IdentifierInfo &get(StringRef Name, tok::TokenKind TokenCode) {
|
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmLexer.h | 23 enum TokenKind { 54 TokenKind Kind; 64 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 67 TokenKind getKind() const { return Kind; } 68 bool is(TokenKind K) const { return Kind == K; } 69 bool isNot(TokenKind K) const { return Kind != K; } 163 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } 166 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } 169 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
|
/external/clang/lib/Format/ |
FormatToken.h | 197 bool is(tok::TokenKind Kind) const { return Tok.is(Kind); } 199 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { 203 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3) const { 207 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3, 208 tok::TokenKind K4, tok::TokenKind K5 = tok::NUM_TOKENS [all...] |
WhitespaceManager.h | 100 StringRef CurrentLinePrefix, tok::TokenKind Kind, 115 tok::TokenKind Kind;
|
/external/clang/include/clang/Lex/ |
PTHLexer.h | 87 tok::TokenKind x = (tok::TokenKind)*CurPtr;
|
Token.h | 84 tok::TokenKind getKind() const { return (tok::TokenKind)Kind; } 85 void setKind(tok::TokenKind K) { Kind = K; } 89 bool is(tok::TokenKind K) const { return Kind == (unsigned) K; } 90 bool isNot(tok::TokenKind K) const { return Kind != (unsigned) K; } 147 return tok::getTokenName( (tok::TokenKind) Kind);
|
Lexer.h | 419 tok::TokenKind TKind, 462 tok::TokenKind Kind) { 579 tok::TokenKind Kind); 581 tok::TokenKind Kind); 584 tok::TokenKind Kind);
|
LiteralSupport.h | 141 tok::TokenKind Kind; 149 tok::TokenKind kind); 177 tok::TokenKind Kind;
|
/external/clang/lib/ASTMatchers/Dynamic/ |
Parser.cpp | 30 enum TokenKind { 48 TokenKind Kind; 73 TokenInfo::TokenKind nextTokenKind() const { return NextToken.Kind; }
|
/frameworks/compile/mclinker/include/mcld/LD/ |
EhFrameReader.h | 45 enum TokenKind { 62 TokenKind kind;
|
/external/clang/unittests/Lex/ |
LexerTest.cpp | 60 ArrayRef<tok::TokenKind> ExpectedTokens) { 112 std::vector<tok::TokenKind> ExpectedTokens; 126 std::vector<tok::TokenKind> ExpectedTokens; 138 std::vector<tok::TokenKind> ExpectedTokens; 151 std::vector<tok::TokenKind> ExpectedTokens; 164 std::vector<tok::TokenKind> ExpectedTokens; 178 std::vector<tok::TokenKind> ExpectedTokens; 193 std::vector<tok::TokenKind> ExpectedTokens; 206 std::vector<tok::TokenKind> ExpectedTokens; 219 std::vector<tok::TokenKind> ExpectedTokens [all...] |
/external/clang/include/clang/AST/ |
CommentLexer.h | 34 enum TokenKind { 65 tok::TokenKind Kind; 91 tok::TokenKind getKind() const LLVM_READONLY { return Kind; } 92 void setKind(tok::TokenKind K) { Kind = K; } 94 bool is(tok::TokenKind K) const LLVM_READONLY { return Kind == K; } 95 bool isNot(tok::TokenKind K) const LLVM_READONLY { return Kind != K; } 296 tok::TokenKind Kind) {
|
/external/clang/lib/Parse/ |
RAIIObjectsForParser.h | 361 tok::TokenKind Kind, Close, FinalToken; 380 BalancedDelimiterTracker(Parser& p, tok::TokenKind k, 381 tok::TokenKind FinalToken = tok::semi) 421 tok::TokenKind SkipToTok = tok::unknown);
|
ParseCXXInlineMethods.cpp | 147 tok::TokenKind kind = Tok.getKind(); 209 tok::TokenKind kind = Tok.getKind(); 559 bool Parser::ConsumeAndStoreUntil(tok::TokenKind T1, tok::TokenKind T2, 762 tok::TokenKind kind = Tok.getKind();
|
ParseExpr.cpp | 208 tok::TokenKind K = Tok.getKind(); 620 tok::TokenKind SavedKind = Tok.getKind(); 749 llvm::SmallDenseMap<IdentifierInfo *, tok::TokenKind>::iterator Known [all...] |
ParseExprCXX.cpp | 26 static int SelectDigraphErrorMessage(tok::TokenKind Kind) { 48 Token &ColonToken, tok::TokenKind Kind, bool AtDigraph) { 212 tok::TokenKind NextKind = NextToken().getKind(); [all...] |
/external/clang/include/clang/Parse/ |
Parser.h | 140 llvm::SmallDenseMap<IdentifierInfo *, tok::TokenKind> RevertableTypeTraits; 638 bool ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned Diag, 640 tok::TokenKind SkipToTok = tok::unknown); 745 bool SkipUntil(tok::TokenKind T, bool StopAtSemi = true, 750 bool SkipUntil(tok::TokenKind T1, tok::TokenKind T2, bool StopAtSemi = true, 752 tok::TokenKind TokArray[] = {T1, T2}; 755 bool SkipUntil(tok::TokenKind T1, tok::TokenKind T2, tok::TokenKind T3 [all...] |
/external/clang/lib/Lex/ |
PTHLexer.cpp | 61 tok::TokenKind TKind = (tok::TokenKind) (Word0 & 0xFF); 180 tok::TokenKind x = (tok::TokenKind) (uint8_t) *p; 279 assert(((tok::TokenKind)*CurPtr) == tok::hash);
|