Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 68) sorted by relevance

123

/NextBSD/contrib/llvm/tools/clang/lib/Lex/
HDLexer.cpp53 void Lexer::anchor() { } in anchor()
55 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer()
109 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) in Lexer() function in Lexer
120 void Lexer::resetExtendedTokenMode() { in resetExtendedTokenMode()
131 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts, in Lexer() function in Lexer
144 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, in Lexer() function in Lexer
146 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(), in Lexer()
164 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer()
173 Lexer *L = new Lexer(SpellingFID, InputFile, PP); in Create_PragmaLexer()
202 std::string Lexer::Stringify(StringRef Str, bool Charify) { in Stringify()
[all …]
/NextBSD/contrib/llvm/lib/MC/MCParser/
HDAsmParser.cpp118 AsmLexer Lexer; member in __anona80e9bb80111::AsmParser
200 MCAsmLexer &getLexer() override { return Lexer; } in getLexer()
504 : Lexer(MAI), Ctx(Ctx), Out(Out), MAI(MAI), SrcMgr(SM), in AsmParser()
513 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in AsmParser()
573 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in enterIncludeFile()
578 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer()); in enterIncludeFile()
588 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in processIncbinFile()
599 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(), in jumpToLoc()
604 const AsmToken *tok = &Lexer.Lex(); in Lex()
612 tok = &Lexer.Lex(); in Lex()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDCommentLexer.cpp13 void Token::dump(const Lexer &L, const SourceManager &SM) const { in dump()
49 StringRef Lexer::resolveHTMLNamedCharacterReference(StringRef Name) const { in resolveHTMLNamedCharacterReference()
61 StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const { in resolveHTMLDecimalCharacterReference()
71 StringRef Lexer::resolveHTMLHexCharacterReference(StringRef Name) const { in resolveHTMLHexCharacterReference()
82 void Lexer::skipLineStartingDecorations() { in skipLineStartingDecorations()
271 void Lexer::formTokenWithChars(Token &Result, const char *TokEnd, in formTokenWithChars()
284 void Lexer::lexCommentText(Token &T) { in lexCommentText()
441 void Lexer::setupAndLexVerbatimBlock(Token &T, in setupAndLexVerbatimBlock()
466 void Lexer::lexVerbatimBlockFirstLine(Token &T) { in lexVerbatimBlockFirstLine()
511 void Lexer::lexVerbatimBlockBody(Token &T) { in lexVerbatimBlockBody()
[all …]
HDRawCommentList.cpp127 comments::Lexer L(Allocator, Context.getDiagnostics(), in extractBriefText()
149 comments::Lexer L(Context.getAllocator(), Context.getDiagnostics(), in parse()
HDCommentBriefParser.cpp58 BriefParser::BriefParser(Lexer &L, const CommandTraits &Traits) : in BriefParser()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDCommentLexer.h28 class Lexer; variable
58 friend class Lexer; variable
218 void dump(const Lexer &L, const SourceManager &SM) const;
222 class Lexer {
224 Lexer(const Lexer &) = delete;
225 void operator=(const Lexer &) = delete;
346 Lexer(llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags,
HDCommentBriefParser.h31 Lexer &L;
45 BriefParser(Lexer &L, const CommandTraits &Traits);
HDCommentParser.h36 Lexer &L;
89 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
/NextBSD/contrib/llvm/tools/clang/include/clang/Lex/
HDLexer.h46 class Lexer : public PreprocessorLexer {
92 Lexer(const Lexer &) = delete;
93 void operator=(const Lexer &) = delete;
103 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer, Preprocessor &PP);
108 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
114 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer,
120 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
HDPreprocessor.h282 std::unique_ptr<Lexer> CurLexer;
327 std::unique_ptr<Lexer> TheLexer;
336 std::unique_ptr<Lexer> &&TheLexer, in IncludeStackInfo()
1329 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
1341 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
1358 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
1373 return Lexer::getRawToken(Loc, Result, SourceMgr, LangOpts, IgnoreWhiteSpace);
1403 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts()); in getImmediateMacroName()
1431 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
1441 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts,
[all …]
/NextBSD/contrib/llvm/tools/llvm-mc/
HDllvm-mc.cpp246 AsmLexer Lexer(MAI); in AsLexInput() local
247 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
250 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput()
251 AsmToken Tok = Lexer.getTok(); in AsLexInput()
255 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, in AsLexInput()
263 OS << "identifier: " << Lexer.getTok().getString(); in AsLexInput()
266 OS << "int: " << Lexer.getTok().getString(); in AsLexInput()
269 OS << "real: " << Lexer.getTok().getString(); in AsLexInput()
272 OS << "string: " << Lexer.getTok().getString(); in AsLexInput()
/NextBSD/lib/clang/libclanglex/
HDMakefile.depend20 Lexer.o: DiagnosticCommonKinds.inc.h
21 Lexer.o: DiagnosticLexKinds.inc.h
22 Lexer.po: DiagnosticCommonKinds.inc.h
23 Lexer.po: DiagnosticLexKinds.inc.h
HDMakefile10 Lexer.cpp \
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
HDInclusionRewriter.cpp79 void CommentOutDirective(Lexer &DirectivesLex, const Token &StartToken,
82 bool HandleHasInclude(FileID FileId, Lexer &RawLex,
87 StringRef NextIdentifierName(Lexer &RawLex, Token &RawToken);
292 void InclusionRewriter::CommentOutDirective(Lexer &DirectiveLex, in CommentOutDirective()
317 StringRef InclusionRewriter::NextIdentifierName(Lexer &RawLex, in NextIdentifierName()
330 FileID FileId, Lexer &RawLex, const DirectoryLookup *Lookup, Token &Tok, in HandleHasInclude()
409 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process()
/NextBSD/contrib/llvm/tools/clang/lib/Edit/
HDCommit.cpp252 unsigned tokLen = Lexer::MeasureTokenLength(spellLoc, SourceMgr, LangOpts); in canInsertAfterToken()
269 loc = Lexer::getLocForEndOfToken(loc, 0, SourceMgr, LangOpts); in canInsertAfterToken()
298 range = Lexer::makeFileCharRange(range, SM, LangOpts); in canRemoveRange()
341 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, MacroBegin); in isAtStartOfMacroExpansion()
345 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); in isAtEndOfMacroExpansion()
HDEditedSource.cpp247 return !(Lexer::isIdentifierBodyChar(left, LangOpts) && in canBeJoined()
248 Lexer::isIdentifierBodyChar(right, LangOpts)); in canBeJoined()
271 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts); in adjustRemoval()
389 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDCheckerContext.cpp93 return Lexer::getImmediateMacroName(Loc, getSourceManager(), in getMacroNameOrSpelling()
96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts()); in getMacroNameOrSpelling()
HDPlistDiagnostics.cpp111 EmitRange(o, SM, Lexer::getAsCharRange(StartEdge, SM, LangOpts), FM, in ReportControlFlow()
116 EmitRange(o, SM, Lexer::getAsCharRange(EndEdge, SM, LangOpts), FM, in ReportControlFlow()
169 Lexer::getAsCharRange(SM.getExpansionRange(R), SM, LangOpts), in ReportEvent()
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDTransforms.cpp142 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) in findSemiAfterLocation()
145 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); in findSemiAfterLocation()
159 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in findSemiAfterLocation()
406 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in rewritePropertyAttribute()
487 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in addPropertyAttribute()
549 str += Lexer::getSourceText( in GCRewriteFinalize()
HDPlistReporter.cpp112 EmitRange(o, SM, Lexer::getAsCharRange(ExpansionRange, SM, LangOpts), in writeARCDiagsToPlist()
/NextBSD/contrib/llvm/tools/clang/lib/Rewrite/
HDHTMLRewrite.cpp44 EOffset += Lexer::MeasureTokenLength(E, R.getSourceMgr(), R.getLangOpts()); in HighlightRange()
362 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in SyntaxHighlight()
452 Lexer L(FID, FromFile, SM, PP.getLangOpts()); in HighlightMacros()
HDRewriter.cpp154 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRangeSize()
193 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
203 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
HDTokenRewriter.cpp27 Lexer RawLex(FID, FromFile, SM, LangOpts); in TokenRewriter()
/NextBSD/contrib/llvm/tools/clang/lib/Tooling/
HDRefactoringCallbacks.cpp32 return replaceStmtWithText(Sources, From, Lexer::getSourceText( in replaceStmtWithStmt()
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDHeaderIncludeGen.cpp118 Lexer::Stringify(Filename); in FileChanged()

123