/external/clang/lib/Rewrite/ |
TokenRewriter.cpp | 35 while (RawTok.isNot(tok::eof)) { 37 if (Tok.is(tok::raw_identifier)) { 40 PP.LookUpIdentifierInfo(Tok); 87 Token Tok; 88 Tok.startToken(); 90 Tok.setLocation(ScratchBuf->getToken(Val, Len, Spelling)); 91 Tok.setLength(Len); 94 // set kind to tok::unknown. 95 Tok.setKind(tok::unknown) [all...] |
HTMLRewrite.cpp | 372 Token Tok; 373 L.LexFromRawLexer(Tok); 375 while (Tok.isNot(tok::eof)) { 378 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); 379 unsigned TokLen = Tok.getLength(); 380 switch (Tok.getKind()) { 382 case tok::identifier: 383 llvm_unreachable("tok::identifier in raw lexing mode!"); 385 case tok::raw_identifier: [all...] |
/external/clang/lib/Frontend/ |
FrontendActions.cpp | 136 while (RawTok.isNot(tok::eof)) { 146 Token Tok; 149 PP.Lex(Tok); 150 PP.DumpToken(Tok, true); 152 } while (Tok.isNot(tok::eof)); 176 Token Tok; 180 PP.Lex(Tok); 181 } while (Tok.isNot(tok::eof)) [all...] |
PrintPreprocessedOutput.cpp | 134 bool HandleFirstTokOnLine(Token &Tok); 144 const Token &Tok) { 145 return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok); 416 bool PrintPPOutputPPCallbacks::HandleFirstTokOnLine(Token &Tok) { 419 if (!MoveToLine(Tok.getLocation())) 424 unsigned ColNo = SM.getExpansionColumnNumber(Tok.getLocation()); 432 if (ColNo <= 1 && Tok.is(tok::hash)) 481 while (PragmaTok.isNot(tok::eod)) { 494 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, [all...] |
VerifyDiagnosticConsumer.cpp | 348 Token Tok; 349 Tok.setKind(tok::comment); 350 while (Tok.isNot(tok::eof)) { 351 RawLex.Lex(Tok); 352 if (!Tok.is(tok::comment)) continue; 354 std::string Comment = PP.getSpelling(Tok); 358 ParseDirective(&Comment[0], Comment.size(), ED, PP, Tok.getLocation()) [all...] |
CacheTokens.cpp | 282 Token Tok; 285 L.LexFromRawLexer(Tok); 288 if ((Tok.isAtStartOfLine() || Tok.is(tok::eof)) && 293 // 'Tok' when we exit this branch. 294 Token Tmp = Tok; 295 Tmp.setKind(tok::eod); 302 if (Tok.is(tok::raw_identifier)) [all...] |
/external/clang/lib/Lex/ |
MacroArgs.cpp | 104 for (; ArgPtr->isNot(tok::eof); ++ArgPtr) 120 if (Result->is(tok::eof)) 134 for (; ArgTok->isNot(tok::eof); ++ArgTok) 171 Token &Tok = Result.back(); 172 PP.Lex(Tok); 173 } while (Result.back().isNot(tok::eof)); 194 Token Tok; 195 Tok.startToken(); 196 Tok.setKind(Charify ? tok::char_constant : tok::string_literal) [all...] |
PPExpressions.cpp | 91 if (PeekTok.is(tok::l_paren)) { 97 if (PeekTok.is(tok::code_completion)) { 130 if (PeekTok.isNot(tok::r_paren)) { 162 if (PeekTok.is(tok::code_completion)) { 183 Result.Val = II->getTokenID() == tok::kw_true; 194 case tok::eod: 195 case tok::r_paren: 199 case tok::numeric_constant: { 250 case tok::char_constant: // 'x' 251 case tok::wide_char_constant: { // L'x [all...] |
TokenLexer.cpp | 26 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroArgs *Actuals) { 31 Macro = PP.getMacroInfo(Tok.getIdentifierInfo()); 35 ExpandLocStart = Tok.getLocation(); 37 AtStartOfLine = Tok.isAtStartOfLine(); 38 HasLeadingSpace = Tok.hasLeadingSpace(); 50 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && 142 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) { 152 if (CurTok.is(tok::hash)) // Stringify 198 !ResultToks.empty() && ResultToks.back().is(tok::hashhash) [all...] |
PPMacroExpansion.cpp | 330 Token Tok; 334 LexUnexpandedToken(Tok); 335 assert(Tok.is(tok::l_paren) && "Error computing l-paren-ness?"); 343 while (Tok.isNot(tok::r_paren)) { 344 assert((Tok.is(tok::l_paren) || Tok.is(tok::comma)) & [all...] |
PPDirectives.cpp | 85 /// current line until the tok::eod token is found. 90 assert(Tmp.isNot(tok::eof) && "EOF seen while discarding directive tokens"); 91 } while (Tmp.isNot(tok::eod)); 103 if (MacroNameTok.is(tok::code_completion)) { 111 if (MacroNameTok.is(tok::eod)) { 131 } else if (isDefineUndef && II->getPPKeywordID() == tok::pp_defined) { 147 // token kind to tok::eod. 148 MacroNameTok.setKind(tok::eod); 152 /// CheckEndOfDirective - Ensure that the next token is a tok::eod token. If 167 while (Tmp.is(tok::comment)) // Skip comments in -C mode [all...] |
Pragma.cpp | 80 Token &Tok) { 83 PP.LexUnexpandedToken(Tok); 87 = FindHandler(Tok.getIdentifierInfo() ? Tok.getIdentifierInfo()->getName() 91 PP.Diag(Tok, diag::warn_pragma_ignored); 96 Handler->HandlePragma(PP, Introducer, Tok); 109 Token Tok; 110 PragmaHandlers->HandlePragma(*this, PragmaIntroducerKind(Introducer), Tok); 120 /// been read into 'Tok'. 121 void Preprocessor::Handle_Pragma(Token &Tok) { [all...] |
Lexer.cpp | 45 bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const { 52 tok::ObjCKeywordKind Token::getObjCKeywordID() const { 54 return specId ? specId->getObjCKeywordID() : tok::objc_not_keyword; 286 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr, 288 assert((int)Tok.getLength() >= 0 && "Token character range is bogus!"); 292 const char* TokStart = SourceMgr.getCharacterData(Tok.getLocation(), 299 if (!Tok.needsCleaning()) 300 return std::string(TokStart, TokStart+Tok.getLength()); 303 Result.reserve(Tok.getLength()); 306 for (const char *Ptr = TokStart, *End = TokStart+Tok.getLength() [all...] |
/external/clang/lib/Parse/ |
ParsePragma.cpp | 26 assert(Tok.is(tok::annot_pragma_unused)); 28 Actions.ActOnPragmaUnused(Tok, getCurScope(), UnusedLoc); 40 Token Tok; 41 PP.LexUnexpandedToken(Tok); 43 const IdentifierInfo *PushPop = Tok.getIdentifierInfo(); 52 PP.LexUnexpandedToken(Tok); 53 if (Tok.isNot(tok::l_paren)) { 54 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen [all...] |
Parser.cpp | 30 Tok.setKind(tok::eof); 76 const Token &Tok = P.getCurToken(); 77 if (Tok.is(tok::eof)) { 82 if (Tok.getLocation().isInvalid()) { 88 Tok.getLocation().print(OS, PP.getSourceManager()); 89 if (Tok.isAnnotation()) 92 OS << ": current parser token '" << PP.getSpelling(Tok) << "'\n"; 100 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) [all...] |
/external/llvm/lib/TableGen/ |
TGLexer.cpp | 291 tgtok::TokKind Tok = LexToken(); 292 if (Tok == tgtok::Error) return true; 293 if (Tok != tgtok::StrVal) {
|
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 266 AsmToken Tok = Lexer.getTok(); 268 switch (Tok.getKind()) { 333 Out->os().write_escaped(Tok.getString());
|
/frameworks/compile/slang/ |
slang.cpp | 404 clang::Token Tok; 407 mPP->Lex(Tok); 408 } while (Tok.isNot(clang::tok::eof));
|
/external/llvm/utils/TableGen/ |
CodeGenInstruction.cpp | 202 std::string Tok = CStr.substr(start, wpos - start); 203 if (Tok == "@earlyclobber") {
|
AsmMatcherEmitter.cpp | 777 StringRef Tok = AsmOperands[i].Token; 778 if (Tok[0] == '$' && Tok.find(':') != StringRef::npos) 780 "matchable with operand modifier '" + Tok.str() + 785 if (Tok[0] == '$' && !OperandNames.insert(Tok).second) { 788 "ERROR: matchable with tied operand '" + Tok.str() + 795 << Tok.str() << "'\n"; 808 StringRef Tok = AsmOperands[i].Token; 809 if (!Tok.startswith(Info.RegisterPrefix) [all...] |
/external/llvm/lib/Target/MBlaze/AsmParser/ |
MBlazeAsmParser.cpp | 89 } Tok; 124 Tok = o.Tok; 216 return StringRef(Tok.Data, Tok.Length); 223 Op->Tok.Data = Str.data(); 224 Op->Tok.Length = Str.size();
|
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 125 } Tok; 158 return StringRef(Tok.Data, Tok.Length); 162 Tok.Data = Value.data(); 163 Tok.Length = Value.size(); 327 Res->Tok.Data = Str.data(); 328 Res->Tok.Length = Str.size(); 406 const AsmToken &Tok = Parser.getTok(); 407 if (Tok.isNot(AsmToken::Identifier)) 409 SMRange(StartLoc, Tok.getEndLoc())) [all...] |
/external/clang/include/clang/Parse/ |
Parser.h | 86 /// Tok - The current token we are peeking ahead. All parsing methods assume 88 Token Tok; 191 const Token &getCurToken() const { return Tok; } 253 return Tok.getKind() == tok::l_paren || Tok.getKind() == tok::r_paren; 257 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square [all...] |
/external/clang/lib/Serialization/ |
ASTReader.cpp | [all...] |
ASTWriter.cpp | [all...] |