Home
last modified time | relevance | path

Searched refs:getMainFileID (Results 1 – 25 of 145) sorted by relevance

123456

/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp67 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()
DRewriteTest.cpp22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
DHTMLPrint.cpp64 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
/external/clang/lib/Frontend/Rewrite/
DRewriteMacros.cpp68 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()
DRewriteTest.cpp23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
DHTMLPrint.cpp67 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
/external/llvm-project/clang-tools-extra/clangd/
DSemanticSelection.cpp47 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/
DTweak.cpp54 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/
DTokensTest.cpp179 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/
DPreambleTests.cpp366 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/
DKernelNameRestrictionCheck.cpp81 const FileEntry *Entry = SM.getFileEntryForID(SM.getMainFileID()); in EndOfMainFile()
84 Check.diag(SM.getLocForStartOfFile(SM.getMainFileID()), in EndOfMainFile()
/external/llvm-project/clang/unittests/Tooling/
DRefactoringActionRulesTest.cpp103 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/
DAddUsing.cpp72 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()
DDefineOutline.cpp134 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/
DSymbolCollector.cpp308 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/
DCommentTextTest.cpp36 FileID File = SourceMgr.getMainFileID(); in formatComment()
/external/llvm-project/mlir/lib/Parser/
DLexer.cpp34 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/
DFindAllMacros.cpp64 Reporter->reportSymbols(SM->getFileEntryForID(SM->getMainFileID())->getName(), in EndOfMainFile()
/external/llvm-project/clang/tools/libclang/
DRewrite.cpp57 R.getEditBuffer(R.getSourceMgr().getMainFileID()).write(llvm::outs()); in clang_CXRewriter_writeMainFileToStdOut()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc723 == 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/
DIncludeInserter.cpp86 return createIncludeInsertion(SourceMgr->getMainFileID(), Header); in createMainFileIncludeInsertion()
DUsingInserter.cpp46 if (SourceMgr.getFileID(InsertLoc) != SourceMgr.getMainFileID()) in createUsingDeclaration()
/external/llvm-project/clang/lib/Frontend/
DFrontendActions.cpp763 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/
DModelInjector.cpp48 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp49 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()

123456