/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/include/clang/Basic/ |
TokenKinds.h | 11 /// \brief Defines the clang::TokenKind enum and support functions. 25 enum TokenKind : unsigned short { 57 const char *getTokenName(TokenKind Kind) LLVM_READNONE; 66 const char *getPunctuatorSpelling(TokenKind Kind) LLVM_READNONE; 70 const char *getKeywordSpelling(TokenKind Kind) LLVM_READNONE; 73 inline bool isAnyIdentifier(TokenKind K) { 79 inline bool isStringLiteral(TokenKind K) { 87 inline bool isLiteral(TokenKind K) { 95 inline bool isAnnotation(TokenKind K) {
|
OperatorPrecedence.h | 47 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
|
IdentifierTable.h | 153 tok::TokenKind getTokenID() const { return (tok::TokenKind)TokenID; } 169 void revertIdentifierToTokenID(tok::TokenKind TK) { 485 IdentifierInfo &get(StringRef Name, tok::TokenKind TokenCode) {
|
/external/clang/lib/Basic/ |
TokenKinds.cpp | 10 // This file implements the TokenKind enum and support functions. 25 const char *tok::getTokenName(TokenKind Kind) { 28 llvm_unreachable("unknown TokenKind"); 32 const char *tok::getPunctuatorSpelling(TokenKind Kind) { 41 const char *tok::getKeywordSpelling(TokenKind Kind) {
|
OperatorPrecedence.cpp | 18 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
|
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmLexer.h | 24 enum TokenKind { 56 TokenKind Kind; 66 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal) 68 AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal = 0) 71 TokenKind getKind() const { return Kind; } 72 bool is(TokenKind K) const { return Kind == K; } 73 bool isNot(TokenKind K) const { return Kind != K; } 200 AsmToken::TokenKind getKind() const { return getTok().getKind(); } 203 bool is(AsmToken::TokenKind K) const { return getTok().is(K); } 206 bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); [all...] |
/external/clang/include/clang/Lex/ |
Token.h | 68 tok::TokenKind Kind; 90 tok::TokenKind getKind() const { return Kind; } 91 void setKind(tok::TokenKind K) { Kind = K; } 95 bool is(tok::TokenKind K) const { return Kind == K; } 96 bool isNot(tok::TokenKind K) const { return Kind != K; } 97 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { 101 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const {
|
PTHLexer.h | 86 tok::TokenKind x = (tok::TokenKind)*CurPtr;
|
LiteralSupport.h | 156 tok::TokenKind Kind; 164 tok::TokenKind kind); 192 tok::TokenKind Kind;
|
Lexer.h | 438 tok::TokenKind TKind, 483 tok::TokenKind Kind) { 603 tok::TokenKind Kind); 605 tok::TokenKind Kind); 608 tok::TokenKind Kind);
|
/external/llvm/lib/CodeGen/MIRParser/ |
MILexer.h | 29 enum TokenKind { 123 TokenKind Kind; 132 MIToken &reset(TokenKind Kind, StringRef Range); 138 TokenKind kind() const { return Kind; } 163 bool is(TokenKind K) const { return Kind == K; } 165 bool isNot(TokenKind K) const { return Kind != K; }
|
MILexer.cpp | 58 MIToken &MIToken::reset(TokenKind Kind, StringRef Range) { 153 Cursor C, MIToken &Token, MIToken::TokenKind Type, unsigned PrefixLength, 186 static MIToken::TokenKind getIdentifierKind(StringRef Identifier) { 187 return StringSwitch<MIToken::TokenKind>(Identifier) 278 MIToken::TokenKind Kind) { 291 MIToken::TokenKind Kind) { 450 static MIToken::TokenKind getMetadataKeywordKind(StringRef Identifier) { 451 return StringSwitch<MIToken::TokenKind>(Identifier) 480 static MIToken::TokenKind symbolToken(char C) { 506 MIToken::TokenKind Kind [all...] |
/frameworks/compile/mclinker/include/mcld/LD/ |
EhFrameReader.h | 43 enum TokenKind { CIE, FDE, Terminator, Unknown, NumOfTokenKinds }; 48 TokenKind kind;
|
/external/clang/unittests/Lex/ |
LexerTest.cpp | 63 ArrayRef<tok::TokenKind> ExpectedTokens) { 115 std::vector<tok::TokenKind> ExpectedTokens; 129 std::vector<tok::TokenKind> ExpectedTokens; 141 std::vector<tok::TokenKind> ExpectedTokens; 154 std::vector<tok::TokenKind> ExpectedTokens; 167 std::vector<tok::TokenKind> ExpectedTokens; 181 std::vector<tok::TokenKind> ExpectedTokens; 196 std::vector<tok::TokenKind> ExpectedTokens; 209 std::vector<tok::TokenKind> ExpectedTokens; 222 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/Format/ |
WhitespaceManager.h | 111 StringRef CurrentLinePrefix, tok::TokenKind Kind, 126 tok::TokenKind Kind;
|
/external/clang/include/clang/Parse/ |
Parser.h | 143 llvm::SmallDenseMap<IdentifierInfo *, tok::TokenKind> RevertibleTypeTraits; 293 bool TryConsumeToken(tok::TokenKind Expected) { 303 bool TryConsumeToken(tok::TokenKind Expected, SourceLocation &Loc) { 458 tok::TokenKind Kind = Tok.getKind(); 736 bool ExpectAndConsume(tok::TokenKind ExpectedTok, 862 bool SkipUntil(tok::TokenKind T, 866 bool SkipUntil(tok::TokenKind T1, tok::TokenKind T2, 868 tok::TokenKind TokArray[] = {T1, T2}; 871 bool SkipUntil(tok::TokenKind T1, tok::TokenKind T2, tok::TokenKind T3 [all...] |
/external/clang/lib/Parse/ |
RAIIObjectsForParser.h | 367 tok::TokenKind Kind, Close, FinalToken; 386 BalancedDelimiterTracker(Parser& p, tok::TokenKind k, 387 tok::TokenKind FinalToken = tok::semi) 427 tok::TokenKind SkipToTok = tok::unknown);
|
ParseCXXInlineMethods.cpp | 135 tok::TokenKind kind = Tok.getKind(); 199 tok::TokenKind kind = Tok.getKind(); 660 bool Parser::ConsumeAndStoreUntil(tok::TokenKind T1, tok::TokenKind T2, [all...] |
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
CalculatorExpr.java | 57 private static enum TokenKind { CONSTANT, OPERATOR, PRE_EVAL }; 58 private static TokenKind[] tokenKindValues = TokenKind.values(); 63 abstract TokenKind kind(); 92 out.writeByte(TokenKind.OPERATOR.ordinal()); 108 TokenKind kind() { return TokenKind.OPERATOR; } 137 out.writeByte(TokenKind.CONSTANT.ordinal()); 250 public TokenKind kind() { 251 return TokenKind.CONSTANT [all...] |
/external/clang/lib/Lex/ |
PTHLexer.cpp | 61 tok::TokenKind TKind = (tok::TokenKind) (Word0 & 0xFF); 173 tok::TokenKind x = (tok::TokenKind) (uint8_t) *p; 275 assert(((tok::TokenKind)*CurPtr) == tok::hash);
|
/external/clang/lib/ASTMatchers/Dynamic/ |
Parser.cpp | 31 enum TokenKind { 50 TokenKind Kind; 83 TokenInfo::TokenKind nextTokenKind() const { return NextToken.Kind; }
|
/bionic/libc/kernel/tools/ |
cpp.py | 25 from clang.cindex import TokenKind 145 elif self.kind == TokenKind.IDENTIFIER: 264 if token.kind != TokenKind.COMMENT: 486 if self.tokens[self._index].kind != TokenKind.LITERAL: 538 if t.kind != TokenKind.IDENTIFIER: 553 if t.kind != TokenKind.IDENTIFIER: 623 elif op.id == '+' or op.id == '-' or op.kind == TokenKind.LITERAL: 629 elif op.kind == TokenKind.IDENTIFIER: [all...] |