Home
last modified time | relevance | path

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

12

/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()
DInclusionRewriter.cpp232 const MemoryBuffer &FromFile = *SM.getBuffer(SM.getMainFileID(), &Invalid); in detectMainFileEOL()
416 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
603 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc723 == rewriter_.getSourceMgr().getMainFileID()) { in VisitFunctionDecl()
949 == rewriter_.getSourceMgr().getMainFileID()) { in VisitCallExpr()
1370 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).InsertText(0, in DoMiscWorkAround()
1383 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).InsertTextAfter( in DoMiscWorkAround()
1384 rewriter_->getSourceMgr().getBuffer(rewriter_->getSourceMgr().getMainFileID())->getBufferSize(), in DoMiscWorkAround()
1393 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).write(llvm::errs()); in EndSourceFileAction()
1396 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()) in EndSourceFileAction()
1405 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).write(os_); in EndSourceFileAction()
Dtp_frontend_action.cc244 rewriter_->getEditBuffer(rewriter_->getSourceMgr().getMainFileID()).write(os_); in EndSourceFileAction()
/external/v8/tools/clang/translation_unit/
DTranslationUnitGenerator.cpp130 source_manager_->getFileEntryForID(source_manager_->getMainFileID()) in FileChanged()
209 source_manager_->getFileEntryForID(source_manager_->getMainFileID()); in EndOfMainFile()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp48 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()
/external/clang/lib/Frontend/
DFrontendActions.cpp623 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in ExecuteAction()
624 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
689 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
DLogDiagnosticPrinter.cpp120 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
DASTUnit.cpp1622 if (!File || File == SourceMgr.getFileEntryForID(SourceMgr.getMainFileID())) in getMainBufferWithPrecompiledPreamble()
1693 FE = SourceMgr->getFileEntryForID(SourceMgr->getMainFileID())) in getMainFileName()
2690 = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in mapLocationFromPreamble()
2709 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2732 FID = SourceMgr->getMainFileID(); in isInMainFileID()
2754 FID = SourceMgr->getMainFileID(); in getStartOfMainFileID()
/external/clang/tools/libclang/
DIndexing.cpp240 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); in FileChanged()
244 DataConsumer.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID())); in FileChanged()
322 if (SM.getMainFileID() == FID) in shouldSkipFunctionBody()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DSourceMgr.h106 unsigned getMainFileID() const { in getMainFileID() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DSourceMgr.h140 unsigned getMainFileID() const { in getMainFileID() function
/external/llvm/include/llvm/Support/
DSourceMgr.h111 unsigned getMainFileID() const { in getMainFileID() function
/external/clang/lib/Lex/
DPreprocessor.cpp408 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()) == File) { in SetCodeCompletionPoint()
501 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
DPPLexerChange.cpp483 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
/external/llvm/lib/TableGen/
DTGLexer.cpp30 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DTGLexer.cpp32 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp212 yaml::Input In(SM.getMemoryBuffer(SM.getMainFileID())->getBuffer(), in parse()
699 for (line_iterator L(*SM.getMemoryBuffer(SM.getMainFileID()), false), E; in diagFromBlockStringDiag()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp176 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/external/clang/include/clang/Basic/
DSourceManager.h754 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function
1347 return getFileID(Loc) == getMainFileID(); in isWrittenInMainFile()
/external/llvm/lib/MC/
DMCContext.cpp59 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); in MCContext()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mc/
Dllvm-mc.cpp242 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp253 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCContext.cpp68 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); in MCContext()

12