| /src/external/apache2/llvm/dist/clang/examples/AnnotateFunctions/ |
| AnnotateFunctions.cpp | 65 Token Tok; 66 PP.LexUnexpandedToken(Tok); 67 if (Tok.isNot(tok::eod)) 68 PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma";
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| CommentBriefParser.h | 35 Token Tok; 38 SourceLocation Loc = Tok.getLocation(); 39 L.lex(Tok);
|
| CommentParser.h | 55 Token Tok; 62 L.lex(Tok); 64 Tok = MoreLATokens.pop_back_val(); 68 MoreLATokens.push_back(Tok); 69 Tok = OldTok; 76 MoreLATokens.push_back(Tok); 79 Tok = Toks[0]; 83 return (Tok.is(tok::backslash_command) || Tok.is(tok::at_command)) & [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Rewrite/ |
| TokenRewriter.cpp | 40 while (RawTok.isNot(tok::eof)) { 42 if (Tok.is(tok::raw_identifier)) { 45 PP.LookUpIdentifierInfo(Tok); 88 Token Tok; 89 Tok.startToken(); 91 Tok.setLocation(ScratchBuf->getToken(Val, Len, Spelling)); 92 Tok.setLength(Len); 95 // set kind to tok::unknown. 96 Tok.setKind(tok::unknown) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
| HeaderIncludes.cpp | 48 Token Tok; 50 Lex.LexFromRawLexer(Tok); 51 return GetOffsetAfterSequence(SM, Lex, Tok); 55 // \p Tok will be the token after this directive; otherwise, it can be any token 56 // after the given \p Tok (including \p Tok). If \p RawIDName is provided, the 59 Lexer &Lex, StringRef Name, Token &Tok, 61 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) & [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Parse/ |
| ParseAST.cpp | 59 const Token &Tok = P.getCurToken(); 60 if (Tok.is(tok::eof)) { 65 if (Tok.getLocation().isInvalid()) { 71 Tok.getLocation().print(OS, PP.getSourceManager()); 72 if (Tok.isAnnotation()) { 75 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would 79 unsigned Length = Tok.getLength(); 80 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid);
|
| ParseStmtAsm.cpp | 186 const Token &Tok = AsmToks[TokIndex]; 187 Loc = Tok.getLocation(); 206 const tok::TokenKind EndOfStream = tok::semi; 213 LineToks.push_back(Tok); 233 if (Tok.is(tok::kw_this)) { 251 while (Result.isUsable() && Tok.is(tok::period)) { 253 if (IdTok.isNot(tok::identifier) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Format/ |
| NamespaceEndCommentsFixer.cpp | 29 NamespaceTok->isOneOf(tok::kw_namespace, TT_NamespaceMacro) && 32 const FormatToken *Tok = NamespaceTok->getNextNonComment(); 36 assert(Tok && Tok->is(tok::l_paren) && "expected an opening parenthesis"); 37 Tok = Tok->getNextNonComment(); 38 while (Tok && !Tok->isOneOf(tok::r_paren, tok::comma)) [all...] |
| UsingDeclarationsSorter.cpp | 88 assert(UsingTok && UsingTok->is(tok::kw_using) && "Expecting a using token"); 90 const FormatToken *Tok = UsingTok->Next; 91 if (Tok && Tok->is(tok::kw_typename)) { 93 Tok = Tok->Next; 95 if (Tok && Tok->is(tok::coloncolon)) [all...] |
| WhitespaceManager.h | 46 /// Replaces the whitespace in front of \p Tok. Only call once for 52 void replaceWhitespace(FormatToken &Tok, unsigned Newlines, unsigned Spaces, 60 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective); 67 /// (in this order) at \p Offset inside \p Tok, replacing \p ReplaceChars 78 void replaceWhitespaceInToken(const FormatToken &Tok, unsigned Offset, 109 Change(const FormatToken &Tok, bool CreateReplacement, 119 const FormatToken *Tok; 170 return std::make_tuple(Tok->IndentLevel, Tok->NestingLevel,
|
| BreakableToken.h | 234 BreakableToken(const FormatToken &Tok, bool InPPDirective, 236 : Tok(Tok), InPPDirective(InPPDirective), Encoding(Encoding), 239 const FormatToken &Tok; 251 BreakableStringLiteral(const FormatToken &Tok, unsigned StartColumn,
|
| ContinuationIndenter.h | 202 ParenState(const FormatToken *Tok, unsigned Indent, unsigned LastSpace, 204 : Tok(Tok), Indent(Indent), LastSpace(LastSpace), 221 const FormatToken *Tok;
|
| UnwrappedLineParser.h | 103 tok::TokenKind ClosingBraceKind = tok::r_brace); 174 void pushToken(FormatToken *Tok); 301 UnwrappedLineNode() : Tok(nullptr) {} 302 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {} 304 FormatToken *Tok;
|
| /src/external/apache2/llvm/dist/clang/lib/Interpreter/ |
| IncrementalParser.cpp | 148 if (P->getCurToken().is(tok::eof)) 236 Token Tok; 238 PP.Lex(Tok); 239 } while (Tok.isNot(tok::eof)); 244 assert(AssertTok.is(tok::eof) &&
|
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
| SourceCode.cpp | 38 tok::TokenKind Next, 44 Token Tok; 46 Lexer::getRawToken(R.getEnd(), Tok, Context.getSourceManager(), 48 if (Err || !Tok.is(Next)) 50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); 104 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { 105 return isVerticalWhitespace(SM.getCharacterData(Tok.getLocation())[0]); 108 static bool contains(const std::set<tok::TokenKind> &Terminators, 109 const Token &Tok) { 110 return Terminators.count(Tok.getKind()) > 0 [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/ |
| Tree.h | 162 const Token *getToken() const { return Tok; } 165 const Token *Tok; 326 clang::tok::TokenKind getDelimiterTokenKind() const;
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
| InclusionRewriter.cpp | 66 void handleModuleBegin(Token &Tok) { 67 assert(Tok.getKind() == tok::annot_module_begin); 69 {Tok.getLocation(), (Module *)Tok.getAnnotationValue()}); 347 } while (!DirectiveToken.is(tok::eod) && DirectiveToken.isNot(tok::eof)); 364 if (RawToken.is(tok::raw_identifier)) 366 if (RawToken.is(tok::identifier)) 409 while (RawToken.isNot(tok::eof)) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Lex/ |
| PPExpressions.cpp | 112 if (PeekTok.is(tok::l_paren)) { 118 if (PeekTok.is(tok::code_completion)) { 149 if (PeekTok.isNot(tok::r_paren)) { 151 << "'defined'" << tok::r_paren; 152 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; 235 if (PeekTok.is(tok::code_completion)) { 285 case tok::eod: 286 case tok::r_paren: 290 case tok::numeric_constant: { 362 case tok::char_constant: // 'x [all...] |
| PPMacroExpansion.cpp | 541 Callbacks->MacroExpands(Info.Tok, Info.MD, Info.Range, 641 if (I->is(tok::l_paren)) { 643 } else if (I->is(tok::r_paren)) { 647 } else if (I->is(tok::l_brace)) { 649 } else if (I->is(tok::r_brace)) { 693 if (I->is(tok::l_brace)) { 695 } else if (I->is(tok::r_brace)) { 699 } else if (I->is(tok::eof)) { 705 I->setKind(tok::comma); 713 if (FoundSeparatorToken && ArgStartIterator->is(tok::l_brace)) [all...] |
| TokenLexer.cpp | 38 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, 48 ExpandLocStart = Tok.getLocation(); 50 AtStartOfLine = Tok.isAtStartOfLine(); 51 HasLeadingSpace = Tok.hasLeadingSpace(); 65 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && 160 if (ResultToks.empty() || !ResultToks.back().is(tok::comma)) 175 if (ResultToks.back().is(tok::hashhash)) 202 if (VAOPTTokens[CurTokenIdx].is(tok::hashhash)) { 262 if (I != 0 && !Tokens[I-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) 267 assert(Tokens[I + 1].is(tok::l_paren) & [all...] |
| /src/external/apache2/llvm/dist/clang/tools/clang-refactor/ |
| TestSupport.cpp | 320 Token Tok; 321 for (Lex.LexFromRawLexer(Tok); Tok.isNot(tok::eof); 322 Lex.LexFromRawLexer(Tok)) { 323 if (Tok.isNot(tok::comment)) 326 Source.substr(Tok.getLocation().getRawEncoding(), Tok.getLength()); 346 unsigned Offset = Tok.getEndLoc().getRawEncoding() [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/MC/MCParser/ |
| MCAsmLexer.h | 114 AsmToken Tok; 116 MutableArrayRef<AsmToken> Buf(Tok); 122 return Tok;
|
| /src/external/apache2/llvm/dist/llvm/lib/Object/ |
| COFFModuleDefinition.cpp | 155 } while (Tok.K != Eof); 162 Tok = Lex.lex(); 165 Tok = Stack.back(); 171 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) 178 if (Tok.K != Expected) 183 void unget() { Stack.push_back(Tok); } 187 switch (Tok.K) { 193 if (Tok.K != Identifier) { 206 bool IsDll = Tok.K == KwLibrary; // Check before parseName [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| TGLexer.cpp | 392 tgtok::TokKind Tok = LexToken(); 393 if (Tok == tgtok::Error) return true; 394 if (Tok != tgtok::StrVal) {
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/AsmParser/ |
| BPFAsmParser.cpp | 99 StringRef Tok; 120 Tok = o.Tok; 160 return Tok; 200 Op->Tok = Str; 335 const AsmToken &Tok = getParser().getTok(); 336 StartLoc = Tok.getLoc(); 337 EndLoc = Tok.getEndLoc();
|