Home
last modified time | relevance | path

Searched refs:getSourceMgr (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DHTMLPrint.cpp64 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
65 const FileEntry* Entry = R.getSourceMgr().getFileEntryForID(FID); in HandleTranslationUnit()
73 Name = R.getSourceMgr().getBufferOrFake(FID).getBufferIdentifier(); in HandleTranslationUnit()
H A DFixItRewriter.cpp96 const FileEntry *Entry = Rewrite.getSourceMgr().getFileEntryForID(I->first); in WriteFixedFiles()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DRefactoring.cpp60 Rewrite.getSourceMgr().getFileManager(), FileToReplaces)) in applyAllReplacements()
72 SourceManager &SM = Rewrite.getSourceMgr(); in formatAndApplyAllReplacements()
77 Rewrite.getSourceMgr().getFileManager(), FileToReplaces)) { in formatAndApplyAllReplacements()
/llvm-project-15.0.7/lldb/tools/lldb-instr/
H A DInstrument.cpp60 MyRewriter.getSourceMgr().getExpansionRange(C->getSourceRange()); in VisitCXXMethodDecl()
65 Body->getBeginLoc(), 0, MyRewriter.getSourceMgr(), in VisitCXXMethodDecl()
87 if (!MyRewriter.getSourceMgr().isInMainFile(Decl->getBeginLoc())) in ShouldSkip()
/llvm-project-15.0.7/clang/lib/Rewrite/
H A DHTMLRewrite.cpp34 SourceManager &SM = R.getSourceMgr(); in HighlightRange()
45 EOffset += Lexer::MeasureTokenLength(E, R.getSourceMgr(), R.getLangOpts()); in HighlightRange()
110 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in EscapeText()
229 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in AddLineNumbers()
277 llvm::MemoryBufferRef Buf = R.getSourceMgr().getBufferOrFake(FID); in AddHeaderFooterInternalBuiltinCSS()
281 SourceLocation StartLoc = R.getSourceMgr().getLocForStartOfFile(FID); in AddHeaderFooterInternalBuiltinCSS()
H A DRewriter.cpp470 getSourceMgr().getFileEntryForID(I->first); in overwriteChangedFiles()
471 AtomicallyMovedFile File(getSourceMgr().getDiagnostics(), Entry->getName(), in overwriteChangedFiles()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DLexer.h28 const llvm::SourceMgr &getSourceMgr() { return sourceMgr; } in getSourceMgr() function
H A DParser.h37 const llvm::SourceMgr &getSourceMgr() { return state.lex.getSourceMgr(); } in getSourceMgr() function
H A DLexer.cpp45 auto &sourceMgr = getSourceMgr(); in getEncodedSourceLocation()
H A DDialectSymbolParser.cpp315 const_cast<llvm::SourceMgr &>(parser.getSourceMgr()), in parseSymbol()
/llvm-project-15.0.7/clang/tools/libclang/
H A DRewrite.cpp57 R.getEditBuffer(R.getSourceMgr().getMainFileID()).write(llvm::outs()); in clang_CXRewriter_writeMainFileToStdOut()
/llvm-project-15.0.7/llvm/tools/llvm-mca/
H A DCodeRegion.h112 llvm::SourceMgr &getSourceMgr() const { return SM; } in getSourceMgr() function
H A DCodeRegionGenerator.cpp128 createMCAsmParser(Regions.getSourceMgr(), Ctx, Str, MAI)); in parseCodeRegions()
/llvm-project-15.0.7/clang/include/clang/Rewrite/Core/
H A DRewriter.h77 SourceManager &getSourceMgr() const { return *SourceMgr; } in getSourceMgr() function
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DLexer.h173 llvm::SourceMgr &getSourceMgr() { return srcMgr; } in getSourceMgr() function
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSourceMgr.h305 const SourceMgr *getSourceMgr() const { return SM; } in getSourceMgr() function
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp887 SourceManager &SM = R.getSourceMgr(); in HandlePiece()
1197 R.InsertTextBefore(R.getSourceMgr().getLocForStartOfFile(BugFileID),
1236 SourceManager &SM = R.getSourceMgr(); in HighlightRange()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DDiagnostics.cpp448 Result.InsideMainFile = D.getSourceMgr()->FindBufferContainingLoc( in toDiag()
449 D.getLoc()) == D.getSourceMgr()->getMainFileID(); in toDiag()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DClangTidyOptionsTest.cpp158 Pos(posToOffset(D.getLoc(), D.getSourceMgr())) { in Diag()
/llvm-project-15.0.7/mlir/lib/Tools/tblgen-lsp-server/
H A DTableGenServer.cpp59 auto *sourceMgr = const_cast<llvm::SourceMgr *>(diag.getSourceMgr()); in getLspDiagnoticFromDiag()
/llvm-project-15.0.7/clang/lib/Tooling/Core/
H A DReplacement.cpp69 SourceManager &SM = Rewrite.getSourceMgr(); in apply()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmtAsm.cpp194 const llvm::SourceMgr &LSM = *D.getSourceMgr(); in handleDiagnostic()
/llvm-project-15.0.7/llvm/lib/TextAPI/
H A DTextStub.cpp1099 SMDiagnostic NewDiag(*Diag.getSourceMgr(), Diag.getLoc(), File->Path, in DiagHandler()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenAction.cpp474 const llvm::SourceMgr &LSM = *D.getSourceMgr(); in ConvertBackendLocation()
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DAsmParser.cpp2451 const SourceMgr &DiagSrcMgr = *Diag.getSourceMgr(); in DiagHandler()
2488 SMDiagnostic NewDiag(*Diag.getSourceMgr(), Diag.getLoc(), Filename, LineNo, in DiagHandler()

12