| /src/external/apache2/llvm/dist/clang/lib/Tooling/ |
| FixIt.cpp | 14 #include "clang/Lex/Lexer.h" 22 return Lexer::getSourceText(Range, Context.getSourceManager(),
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| CommentBriefParser.h | 30 Lexer &L; 44 BriefParser(Lexer &L, const CommandTraits &Traits);
|
| CommentLexer.h | 1 //===--- CommentLexer.h - Lexer for structured comments ---------*- C++ -*-===// 9 // This file defines lexer for structured comments and supporting token class. 26 class Lexer; 56 friend class Lexer; 216 void dump(const Lexer &L, const SourceManager &SM) const; 219 /// Comment lexer. 220 class Lexer { 222 Lexer(const Lexer &) = delete; 223 void operator=(const Lexer &) = delete [all...] |
| CommentParser.h | 35 Lexer &L; 88 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
|
| /src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/ |
| WasmAsmParser.cpp | 36 MCAsmLexer *Lexer = nullptr; 51 Lexer = &Parser->getLexer(); 75 auto Ok = Lexer->is(Kind); 84 Lexer->getTok()); 117 if (Lexer->isNot(AsmToken::Comma)) 120 if (Lexer->is(AsmToken::Integer)) { 126 if (Lexer->is(AsmToken::Comma)) { 145 if (Lexer->isNot(AsmToken::String)) 146 return error("expected string in directive, instead got: ", Lexer->getTok()); 224 if (!Lexer->is(AsmToken::Identifier) [all...] |
| AsmParser.cpp | 122 AsmLexer Lexer; 222 MCAsmLexer &getLexer() override { return Lexer; } 248 Lexer.setLexMasmIntegers(V); 342 /// Reset the current lexer position to that given by \p Loc. The 715 MCAsmLexer &Lexer; 719 while (Lexer.is(AsmToken::Space)) 720 Lexer.Lex(); 730 : AsmParser(SM, Ctx, Out, MAI, CB), Lexer(getLexer()), Out(Out) { 731 Lexer.setSkipSpace(false); 732 Lexer.setAllowHashInIdentifier(true) [all...] |
| MasmParser.cpp | 362 AsmLexer Lexer; 472 MCAsmLexer &getLexer() override { return Lexer; } 498 Lexer.setLexMasmIntegers(V); 605 /// Reset the current lexer position to that given by \p Loc. The 1020 : Lexer(MAI), Ctx(Ctx), Out(Out), MAI(MAI), SrcMgr(SM), 1028 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); 1093 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); 1098 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); 1106 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), 1111 if (Lexer.getTok().is(AsmToken::Error) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/AsmParser/ |
| WebAssemblyAsmParser.cpp | 196 MCAsmLexer &Lexer; 237 Lexer(Parser.getLexer()) { 269 return Parser.Error(Lexer.getTok().getLoc(), Msg); 327 auto Ok = Lexer.is(Kind); 336 Lexer.getTok()); 341 if (!Lexer.is(AsmToken::Identifier)) { 342 error("Expected identifier, got: ", Lexer.getTok()); 345 auto Name = Lexer.getTok().getString(); 351 while (Lexer.is(AsmToken::Identifier)) { 352 auto Type = WebAssembly::parseType(Lexer.getTok().getString()) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
| SourceCode.cpp | 21 #include "clang/Lex/Lexer.h" 33 return Lexer::getSourceText(Range, Context.getSourceManager(), 40 CharSourceRange R = Lexer::getAsCharRange(Range, Context.getSourceManager(), 46 Lexer::getRawToken(R.getEnd(), Tok, Context.getSourceManager(), 96 CharSourceRange Range = Lexer::makeFileCharRange(EditRange, SM, LangOpts); 135 std::unique_ptr<Lexer> Lexer = [&]() { 140 return std::make_unique<clang::Lexer>( 145 // Tell Lexer to return whitespace as pseudo-tokens (kind is tok::unknown). 146 Lexer->SetKeepWhitespaceMode(true) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| DataCollection.cpp | 11 #include "clang/Lex/Lexer.h" 20 MacroStack << Lexer::getImmediateMacroName(Loc, Context.getSourceManager(),
|
| CommentLexer.cpp | 21 void Token::dump(const Lexer &L, const SourceManager &SM) const { 57 StringRef Lexer::resolveHTMLNamedCharacterReference(StringRef Name) const { 69 StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const { 79 StringRef Lexer::resolveHTMLHexCharacterReference(StringRef Name) const { 90 void Lexer::skipLineStartingDecorations() { 279 void Lexer::formTokenWithChars(Token &Result, const char *TokEnd, 292 void Lexer::lexCommentText(Token &T) { 463 void Lexer::setupAndLexVerbatimBlock(Token &T, 488 void Lexer::lexVerbatimBlockFirstLine(Token &T) { 533 void Lexer::lexVerbatimBlockBody(Token &T) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Lex/ |
| Lexer.cpp | 1 //===- Lexer.cpp - C Language Family Lexer --------------------------------===// 9 // This file implements the Lexer and Token interfaces. 13 #include "clang/Lex/Lexer.h" 74 // Lexer Class Implementation 77 void Lexer::anchor() {} 79 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, 131 /// Lexer constructor - Create a new lexer object for the specified buffer 132 /// with the specified preprocessor managing the lexing process. This lexer [all...] |
| LiteralSupport.cpp | 20 #include "clang/Lex/Lexer.h" 65 Lexer::AdvanceToTokenCharacter(TokLoc, TokRangeBegin - TokBegin, 68 Lexer::AdvanceToTokenCharacter(Begin, TokRangeEnd - TokRangeBegin, 83 Lexer::AdvanceToTokenCharacter(TokLoc, TokRangeBegin - TokBegin, 766 Diags.Report(Lexer::AdvanceToTokenCharacter( 791 Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, LangOpts), 819 Diags.Report(Lexer::AdvanceToTokenCharacter( 867 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin, SM, 908 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, 927 Diags.Report(Lexer::AdvanceToTokenCharacter [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| Lexer.h | 1 //===- Lexer.h - C Language Family Lexer ------------------------*- C++ -*-===// 9 // This file defines the Lexer interface. 40 /// ConflictMarkerKind - Kinds of conflict marker which the lexer might be 64 /// Used to inform the lexer as to whether it's starting at the beginning of 72 /// Lexer - This provides a simple interface that turns a text buffer into a 76 class Lexer : public PreprocessorLexer { 82 // Constant configuration values for this lexer. 96 // True if lexer for _Pragma handling. 103 /// ExtendedTokenMode - The lexer can optionally keep comments and whitespac [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-mca/ |
| CodeRegionGenerator.cpp | 124 // Create a MCAsmParser and setup the lexer to recognize llvm-mca ASM 128 MCAsmLexer &Lexer = Parser->getLexer(); 130 Lexer.setCommentConsumer(&CC); 132 Lexer.setLexMasmIntegers(true);
|
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/ |
| RecursiveSymbolVisitor.h | 20 #include "clang/Lex/Lexer.h" 54 Lexer::getLocForEndOfToken(Initializer->getSourceLocation(), 89 Lexer::getLocForEndOfToken(TypeBeginLoc, 0, SM, LangOpts); 110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts); 146 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts));
|
| /src/external/apache2/llvm/lib/libclangLex/ |
| Makefile | 12 Lexer.cpp \
|
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/ |
| SourceExtraction.cpp | 14 #include "clang/Lex/Lexer.h" 23 return Lexer::getSourceText( 103 Optional<Token> NextToken = Lexer::findNextToken(End, SM, LangOpts);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/AsmParser/ |
| LanaiAsmParser.cpp | 91 Lexer(Parser.getLexer()), SubtargetInfo(STI) { 98 MCAsmLexer &Lexer; 700 if (Lexer.getKind() == AsmToken::Percent) { 704 if (Lexer.getKind() == AsmToken::Identifier) { 705 RegNum = MatchRegisterName(Lexer.getTok().getIdentifier()); 708 Lexer.UnLex(PercentTok.getValue()); 715 Lexer.UnLex(PercentTok.getValue()); 749 if (Lexer.getKind() != AsmToken::Identifier) 765 if (Lexer.getKind() != AsmToken::LParen) { 766 Error(Lexer.getLoc(), "Expected '('") [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
| HeaderIncludes.cpp | 12 #include "clang/Lex/Lexer.h" 42 llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)> 46 Lexer Lex(SM.getMainFileID(), SM.getBufferOrFake(SM.getMainFileID()), SM, 59 Lexer &Lex, StringRef Name, Token &Tok, 71 void skipComments(Lexer &Lex, Token &Tok) { 87 [&](std::function<unsigned(const SourceManager &SM, Lexer &Lex, 92 [&Consume](const SourceManager &SM, Lexer &Lex, Token Tok) { 101 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { 112 [](const SourceManager &SM, Lexer &Lex, Token Tok) -> unsigned { 124 bool checkAndConsumeInclusiveDirective(Lexer &Lex, Token &Tok) [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-ml/ |
| llvm-ml.cpp | 109 AsmLexer Lexer(MAI); 110 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); 111 Lexer.setLexMasmIntegers(true); 112 Lexer.useMasmDefaultRadix(true); 113 Lexer.setLexMasmHexFloats(true); 114 Lexer.setLexMasmStrings(true); 117 while (Lexer.Lex().isNot(AsmToken::Eof)) { 118 Lexer.getTok().dump(OS); 120 if (Lexer.getTok().getKind() == AsmToken::Error) 265 // Record the location of the include directories so that the lexer can fin [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| CheckerContext.cpp | 16 #include "clang/Lex/Lexer.h" 94 return Lexer::getImmediateMacroName(Loc, getSourceManager(), 97 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
|
| /src/external/apache2/llvm/dist/clang/lib/Format/ |
| FormatTokenLexer.h | 103 std::unique_ptr<Lexer> Lex;
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/AsmParser/ |
| HexagonAsmParser.cpp | 606 MCAsmLexer &Lexer = getLexer(); 607 while (!Lexer.is(AsmToken::RCurly)) 608 Lexer.Lex(); 609 Lexer.Lex(); 874 MCAsmLexer &Lexer = getLexer(); 893 const AsmToken &MaybeDotNew = Lexer.getTok(); 911 const AsmToken &MaybeDotNew = Lexer.getTok(); 929 MCAsmLexer &Lexer = getLexer(); 930 AsmToken const &Second = Lexer.getTok(); 931 AsmToken Third = Lexer.peekTok() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Rewrite/ |
| TokenRewriter.cpp | 16 #include "clang/Lex/Lexer.h" 30 // Create a lexer to lex all the tokens of the main file in raw mode. 32 Lexer RawLex(FID, FromFile, SM, LangOpts); 94 // TODO: Form a whole lexer around this and relex the token! For now, just
|