/external/clang/lib/Lex/ |
PTHLexer.cpp | 45 bool PTHLexer::Lex(Token& Tok) { 61 tok::TokenKind TKind = (tok::TokenKind) (Word0 & 0xFF); 71 Tok.startToken(); 72 Tok.setKind(TKind); 73 Tok.setFlag(TFlags); 75 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset)); 76 Tok.setLength(Len); 79 if (Tok.isLiteral()) { 80 Tok.setLiteralData((const char*) (PTHMgr.SpellingBase + IdentifierID)) [all...] |
PPLexerChange.cpp | 162 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd, 166 TokLexer = llvm::make_unique<TokenLexer>(Tok, ILEnd, Macro, Args, *this); 169 TokLexer->Init(Tok, ILEnd, Macro, Args); 379 CurLexer->FormTokenWithChars(Result, CurLexer->BufferEnd, tok::eof); 411 CurLexer->FormTokenWithChars(Result, EndPos, tok::annot_module_end); 442 CurLexer->FormTokenWithChars(Result, EndPos, tok::eof); 561 void Preprocessor::HandleMicrosoftCommentPaste(Token &Tok) { 590 if (!HandleEndOfTokenLexer(Tok)) Lex(Tok); 598 while (Tok.isNot(tok::eod) && Tok.isNot(tok::eof) [all...] |
Lexer.cpp | 36 bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const { 43 tok::ObjCKeywordKind Token::getObjCKeywordID() const { 45 return specId ? specId->getObjCKeywordID() : tok::objc_not_keyword; 231 static size_t getSpellingSlow(const Token &Tok, const char *BufPtr, 233 assert(Tok.needsCleaning() && "getSpellingSlow called on simple token"); 236 const char *BufEnd = BufPtr + Tok.getLength(); 238 if (tok::isStringLiteral(Tok.getKind())) { 275 assert(Length < Tok.getLength() && 326 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr [all...] |
PPExpressions.cpp | 92 if (PeekTok.is(tok::l_paren)) { 98 if (PeekTok.is(tok::code_completion)) { 128 if (PeekTok.isNot(tok::r_paren)) { 130 << "'defined'" << tok::r_paren; 131 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; 167 if (PeekTok.is(tok::code_completion)) { 187 II->getTokenID() != tok::kw_true && 188 II->getTokenID() != tok::kw_false) 190 Result.Val = II->getTokenID() == tok::kw_true; 201 case tok::eod [all...] |
/external/llvm/lib/IR/ |
DataLayout.cpp | 234 StringRef &Tok = Split.first; // Current token. 237 char Specifier = Tok.front(); 238 Tok = Tok.substr(1); 253 unsigned AddrSpace = Tok.empty() ? 0 : getInt(Tok); 262 unsigned PointerMemSize = inBytes(getInt(Tok)); 271 unsigned PointerABIAlign = inBytes(getInt(Tok)); 280 PointerPrefAlign = inBytes(getInt(Tok)); 304 unsigned Size = Tok.empty() ? 0 : getInt(Tok) [all...] |
/external/clang/include/clang/Lex/ |
Lexer.h | 138 /// return the tok::eof token. This implicitly involves the preprocessor. 241 /// Tok.getLength() bytes long. The length of the actual result is returned. 248 static unsigned getSpelling(const Token &Tok, const char *&Buffer, 253 /// getSpelling() - Return the 'spelling' of the Tok token. The spelling of a 258 static std::string getSpelling(const Token &Tok, 438 tok::TokenKind TKind, 483 tok::TokenKind Kind) { 492 /// tok::l_paren token, 0 if it is something else and 2 if there are no more 526 inline char getAndAdvanceChar(const char *&Ptr, Token &Tok) { 532 char C = getCharAndSizeSlow(Ptr, Size, &Tok); [all...] |
MacroInfo.h | 233 const Token &getReplacementToken(unsigned Tok) const { 234 assert(Tok < ReplacementTokens.size() && "Invalid token #"); 235 return ReplacementTokens[Tok]; 245 void AddTokenToBody(const Token &Tok) { 249 ReplacementTokens.push_back(Tok);
|
LiteralSupport.h | 156 tok::TokenKind Kind; 164 tok::TokenKind kind); 167 bool isAscii() const { return Kind == tok::char_constant; } 168 bool isWide() const { return Kind == tok::wide_char_constant; } 169 bool isUTF16() const { return Kind == tok::utf16_char_constant; } 170 bool isUTF32() const { return Kind == tok::utf32_char_constant; } 192 tok::TokenKind Kind; 206 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), 231 bool isAscii() const { return Kind == tok::string_literal; } 232 bool isWide() const { return Kind == tok::wide_string_literal; [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmLexer.h | 174 AsmToken Tok; 176 MutableArrayRef<AsmToken> Buf(Tok); 182 return Tok;
|
/external/clang/unittests/Lex/ |
PPCallbacksTest.cpp | 182 Token Tok; 183 PP.Lex(Tok); 184 if (Tok.is(tok::eof)) 227 Token Tok; 228 PP.Lex(Tok); 229 if (Tok.is(tok::eof))
|
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 904 const AsmToken &Tok = Parser.getTok(); 905 EndLoc = Tok.getEndLoc(); 907 if (Tok.isNot(AsmToken::Identifier)) { 913 RegNo = MatchRegisterName(Tok.getString()); 917 RegNo = MatchRegisterName(Tok.getString().lower()); 935 + Tok.getString() + " is only available in 64-bit mode", 940 if (RegNo == 0 && (Tok.getString() == "st" || Tok.getString() == "ST")) { 977 if (RegNo == 0 && Tok.getString().size() == 3 && 978 Tok.getString().startswith("db")) [all...] |
X86Operand.h | 63 struct TokOp Tok; 89 return StringRef(Tok.Data, Tok.Length); 93 Tok.Data = Value.data(); 94 Tok.Length = Value.size(); 469 Res->Tok.Data = Str.data(); 470 Res->Tok.Length = Str.size();
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
AArch64AsmParser.cpp | 249 struct TokOp Tok; 278 Tok = o.Tok; 329 return StringRef(Tok.Data, Tok.Length); 334 return Tok.IsSuffix; [all...] |
/external/clang/tools/libclang/ |
CIndexer.h | 117 /// \brief If \c Tok resides inside the definition of \c MI and it points at 121 const Token &Tok,
|
/frameworks/compile/slang/ |
slang_rs_pragma_handler.h | 47 virtual void handleInt(clang::Preprocessor &PP, clang::Token &Tok,
|
/external/clang/lib/Format/ |
ContinuationIndenter.cpp | 30 // the ), ], } or > matching \c Tok. 31 static unsigned getLengthToMatchingParen(const FormatToken &Tok) { 32 if (!Tok.MatchingParen) 34 FormatToken *End = Tok.MatchingParen; 38 return End->TotalLength - Tok.TotalLength + 1; 41 // Returns \c true if \c Tok is the "." or "->" of a call and starts the next 43 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { 44 return Tok.isMemberAccess() && Tok.Previous && Tok.Previous->closesScope() [all...] |
/external/llvm/lib/Target/Sparc/AsmParser/ |
SparcAsmParser.cpp | 76 // returns true if Tok is matched to a register and returns register in RegNo. 77 bool matchRegisterName(const AsmToken &Tok, unsigned &RegNo, 199 struct Token Tok; 230 return StringRef(Tok.Data, Tok.Length); 322 Op->Tok.Data = Str.data(); 323 Op->Tok.Length = Str.size(); 561 const AsmToken &Tok = Parser.getTok(); 562 StartLoc = Tok.getLoc(); 563 EndLoc = Tok.getEndLoc() [all...] |
/external/llvm/lib/Target/ARM/AsmParser/ |
ARMAsmParser.cpp | 551 struct TokOp Tok; 595 return StringRef(Tok.Data, Tok.Length); [all...] |
/external/clang/lib/Parse/ |
RAIIObjectsForParser.h | 367 tok::TokenKind Kind, Close, FinalToken; 373 case tok::l_brace: return P.BraceCount; 374 case tok::l_square: return P.BracketCount; 375 case tok::l_paren: return P.ParenCount; 386 BalancedDelimiterTracker(Parser& p, tok::TokenKind k, 387 tok::TokenKind FinalToken = tok::semi) 393 case tok::l_brace: 394 Close = tok::r_brace; 397 case tok::l_paren [all...] |
/external/llvm/lib/Target/AMDGPU/AsmParser/ |
AMDGPUAsmParser.cpp | 93 TokOp Tok; 104 return StringRef(Tok.Data, Tok.Length); 134 StringRef Token(Tok.Data, Tok.Length); 293 Res->Tok.Data = Str.data(); 294 Res->Tok.Length = Str.size(); 520 const AsmToken Tok = Parser.getTok(); 521 StartLoc = Tok.getLoc(); 522 EndLoc = Tok.getEndLoc() [all...] |
/external/llvm/lib/Target/Mips/AsmParser/ |
MipsAsmParser.cpp | 631 struct Token Tok; [all...] |
/external/llvm/lib/Target/PowerPC/AsmParser/ |
PPCAsmParser.cpp | 256 bool MatchRegisterName(const AsmToken &Tok, 351 struct TokOp Tok; 366 Tok = o.Tok; 689 return StringRef(Tok.Data, Tok.Length); 697 Op->Tok.Data = Str.data(); 698 Op->Tok.Length = Str.size(); 714 Op->Tok.Data = reinterpret_cast<const char *>(Op.get() + 1); 715 Op->Tok.Length = Str.size() [all...] |
/external/clang/lib/Frontend/ |
FrontendActions.cpp | 627 while (RawTok.isNot(tok::eof)) { 637 Token Tok; 640 PP.Lex(Tok); 641 PP.DumpToken(Tok, true); 643 } while (Tok.isNot(tok::eof)); 661 Token Tok; 665 PP.Lex(Tok); 666 } while (Tok.isNot(tok::eof)) [all...] |
VerifyDiagnosticConsumer.cpp | 594 Token Tok; 595 Tok.setKind(tok::comment); 598 while (Tok.isNot(tok::eof)) { 599 RawLex.LexFromRawLexer(Tok); 600 if (!Tok.is(tok::comment)) continue; 602 std::string Comment = RawLex.getSpelling(Tok, SM, LangOpts); 606 if (ParseDirective(Comment, nullptr, SM, nullptr, Tok.getLocation() [all...] |
/external/llvm/lib/Support/ |
YAMLParser.cpp | 194 /// others) before the SimpleKey's Tok. 196 TokenQueueT::iterator Tok; 203 return Tok == Other.Tok; 419 void saveSimpleKeyCandidate( TokenQueueT::iterator Tok 804 SK.Tok = TokenQueue.begin(); 981 void Scanner::saveSimpleKeyCandidate( TokenQueueT::iterator Tok 986 SK.Tok = Tok; 1001 , i->Tok->Range.begin()) [all...] |