/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 67 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in LexRawTokensFromMainFile() 68 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 94 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 209 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()
|
D | RewriteTest.cpp | 22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
|
D | HTMLPrint.cpp | 64 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 68 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in LexRawTokensFromMainFile() 69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 95 RewriteBuffer &RB = Rewrite.getEditBuffer(SM.getMainFileID()); in RewriteMacrosInInput() 210 Rewrite.getRewriteBufferFor(SM.getMainFileID())) { in RewriteMacrosInInput()
|
D | RewriteTest.cpp | 23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
|
D | HTMLPrint.cpp | 67 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SemanticSelection.cpp | 47 if ((Begin.first != SM.getMainFileID()) || (End.first != SM.getMainFileID())) in toFoldingRange() 108 auto FID = SM.getMainFileID(); in getSemanticRanges() 126 if (!SR.hasValue() || SM.getFileID(SR->getBegin()) != SM.getMainFileID()) { in getSemanticRanges()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/ |
D | Tweak.cpp | 54 Code = SM.getBufferData(SM.getMainFileID()); in Selection() 55 Cursor = SM.getComposedLoc(SM.getMainFileID(), RangeBegin); in Selection() 103 auto PathAndEdit = fileEdit(SM, SM.getMainFileID(), std::move(Replacements)); in mainFileEdit()
|
/external/llvm-project/clang/unittests/Tooling/Syntax/ |
D | TokensTest.cpp | 179 Ls.first = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()) in RangeIs() 181 Ls.second = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()) in RangeIs() 246 File = SourceMgr->getMainFileID(); in findSpelled() 367 Buffer.spelledTokens(SourceMgr->getMainFileID()), in TEST_F() 374 auto StartLoc = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in TEST_F() 861 EXPECT_EQ(Int.range(SM), FileRange(SM.getMainFileID(), Code.range("i").Begin, in TEST_F() 864 FileRange(SM.getMainFileID(), Code.range("all").Begin, in TEST_F() 882 auto Expansions = Buffer.macroExpansions(SM.getMainFileID()); in TEST_F() 886 FileRange(SM.getMainFileID(), Range.Begin, Range.End)); in TEST_F() 898 SourceLocation Loc = SourceMgr->getComposedLoc(SourceMgr->getMainFileID(), in TEST_F() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | PreambleTests.cpp | 366 SM.getComposedLoc(SM.getMainFileID(), Modified.point("use"))); in TEST() 374 EXPECT_EQ(SM.getFileID(MacroLoc), SM.getMainFileID()); in TEST() 390 SM.getComposedLoc(SM.getMainFileID(), Modified.point())); in TEST() 484 EXPECT_NE(SM.getFileID(ND.getLocation()), SM.getMainFileID()); in TEST() 488 EXPECT_EQ(DecompLoc.first, SM.getMainFileID()); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/altera/ |
D | KernelNameRestrictionCheck.cpp | 81 const FileEntry *Entry = SM.getFileEntryForID(SM.getMainFileID()); in EndOfMainFile() 84 Check.diag(SM.getLocForStartOfFile(SM.getMainFileID()), in EndOfMainFile()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | RefactoringActionRulesTest.cpp | 103 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()) in TEST_F() 166 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F() 225 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | AddUsing.cpp | 72 if (SM.getFileID(Loc) != SM.getMainFileID()) { in VisitUsingDecl() 238 if (isHeaderFile(SM.getFileEntryForID(SM.getMainFileID())->getName(), in prepare() 359 assert(SM.getFileID(InsertionPoint->Loc) == SM.getMainFileID()); in apply()
|
D | DefineOutline.cpp | 134 SM.getBufferData(SM.getMainFileID()), Replacements); in getFunctionSourceAfterReplacements() 180 AST, *TargetContext, SM.getLocForStartOfFile(SM.getMainFileID()), ND); in getFunctionSourceCode() 403 getCanonicalPath(SM.getFileEntryForID(SM.getMainFileID()), SM); in apply() 444 auto HeaderFE = Effect::fileEdit(SM, SM.getMainFileID(), in apply()
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | SymbolCollector.cpp | 308 SM.getFileID(SM.getSpellingLoc(Loc)) == SM.getMainFileID()) in handleDeclOccurrence() 320 !isHeaderFile(SM.getFileEntryForID(SM.getMainFileID())->getName(), in handleDeclOccurrence() 350 SM.getFileID(SM.getFileLoc(Loc)) == SM.getMainFileID())) in handleDeclOccurrence() 383 const auto *MainFileEntry = SM.getFileEntryForID(SM.getMainFileID()); in handleMacros() 425 !isHeaderFile(SM.getFileEntryForID(SM.getMainFileID())->getName(), in handleMacroOccurrence() 429 (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) in handleMacroOccurrence() 446 SM.getFileID(SpellingLoc) == SM.getMainFileID()) in handleMacroOccurrence()
|
/external/llvm-project/clang/unittests/AST/ |
D | CommentTextTest.cpp | 36 FileID File = SourceMgr.getMainFileID(); in formatComment()
|
/external/llvm-project/mlir/lib/Parser/ |
D | Lexer.cpp | 34 auto bufferID = sourceMgr.getMainFileID(); in Lexer() 43 unsigned mainFileID = sourceMgr.getMainFileID(); in getEncodedSourceLocation()
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
D | FindAllMacros.cpp | 64 Reporter->reportSymbols(SM->getFileEntryForID(SM->getMainFileID())->getName(), in EndOfMainFile()
|
/external/llvm-project/clang/tools/libclang/ |
D | Rewrite.cpp | 57 R.getEditBuffer(R.getSourceMgr().getMainFileID()).write(llvm::outs()); in clang_CXRewriter_writeMainFileToStdOut()
|
/external/bcc/src/cc/frontends/clang/ |
D | b_frontend_action.cc | 723 == rewriter_.getSourceMgr().getMainFileID()) { in VisitFunctionDecl() 949 == rewriter_.getSourceMgr().getMainFileID()) { in VisitCallExpr() 1378 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).InsertText(0, in DoMiscWorkAround() 1391 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).InsertTextAfter( in DoMiscWorkAround() 1392 rewriter_->getSourceMgr().getBuffer(rewriter_->getSourceMgr().getMainFileID())->getBufferSize(), in DoMiscWorkAround() 1401 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).write(llvm::errs()); in EndSourceFileAction() 1404 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()) in EndSourceFileAction() 1413 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).write(os_); in EndSourceFileAction()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | IncludeInserter.cpp | 86 return createIncludeInsertion(SourceMgr->getMainFileID(), Header); in createMainFileIncludeInsertion()
|
D | UsingInserter.cpp | 46 if (SourceMgr.getFileID(InsertLoc) != SourceMgr.getMainFileID()) in createUsingDeclaration()
|
/external/llvm-project/clang/lib/Frontend/ |
D | FrontendActions.cpp | 763 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() 764 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction() 820 SM.getBufferOrNone(SM.getMainFileID())) { in ExecuteAction() 948 llvm::MemoryBufferRef FromFile = SM.getBufferOrFake(SM.getMainFileID()); in ExecuteAction() 954 SM.getLocForStartOfFile(SM.getMainFileID()))) { in ExecuteAction()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 48 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 49 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()
|