Searched defs:TokenKind (Results 1 - 9 of 9) sorted by relevance
/external/clang/bindings/python/tests/cindex/ |
H A D | test_token_kind.py | 1 from clang.cindex import TokenKind namespace 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...] |
H A D | test_tokens.py | 5 from clang.cindex import TokenKind namespace 19 assert tokens[1].kind == TokenKind.IDENTIFIER
|
/external/clang/include/clang/Basic/ |
H A D | TokenKinds.h | 11 /// \brief Defines the clang::TokenKind enum and support functions. 23 enum TokenKind { enum in namespace:clang::tok 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) {
|
/external/clang/lib/ASTMatchers/Dynamic/ |
H A D | Parser.cpp | 30 enum TokenKind { enum in struct:clang::ast_matchers::dynamic::Parser::TokenInfo 48 TokenKind Kind; 73 TokenInfo::TokenKind nextTokenKind() const { return NextToken.Kind; }
|
/external/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmLexer.h | 23 enum TokenKind { enum in class:llvm::AsmToken 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/include/clang/AST/ |
H A D | CommentLexer.h | 34 enum TokenKind { enum in namespace:clang::comments::tok 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/bindings/python/clang/ |
H A D | cindex.py | 438 class TokenKind(object): class in inherits:object 441 _value_map = {} # int -> TokenKind 444 """Create a new TokenKind instance from a numeric value and a name.""" 449 return 'TokenKind.%s' % (self.name,) 453 """Obtain a registered TokenKind instance from its value.""" 454 result = TokenKind._value_map.get(value, None) 457 raise ValueError('Unknown TokenKind: %d' % value) 463 """Register a new TokenKind enumeration. 468 if value in TokenKind._value_map: 469 raise ValueError('TokenKind alread [all...] |
/external/clang/lib/Lex/ |
H A D | ModuleMap.cpp | 715 enum TokenKind { enum in struct:clang::MMToken 751 bool is(TokenKind K) const { return Kind == K; } 812 void skipUntil(MMToken::TokenKind K); 818 void parseHeaderDecl(clang::MMToken::TokenKind, 862 Tok.Kind = llvm::StringSwitch<MMToken::TokenKind>(Tok.getString()) 948 void ModuleMapParser::skipUntil(MMToken::TokenKind K) { 1335 void ModuleMapParser::parseHeaderDecl(MMToken::TokenKind LeadingToken,
|
/external/llvm/lib/Support/ |
H A D | YAMLParser.cpp | 101 enum TokenKind { enum in struct:llvm::yaml::Token 408 , Token::TokenKind Kind 982 , Token::TokenKind Kind
|
Completed in 782 milliseconds