Home
last modified time | relevance | path

Searched refs:getMainFileID (Results 1 – 25 of 34) 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()
DHTMLPrint.cpp67 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
DInclusionRewriter.cpp232 const MemoryBuffer &FromFile = *SM.getBuffer(SM.getMainFileID(), &Invalid); in detectMainFileEOL()
416 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
601 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp48 FileID mainFileID = SM.getMainFileID(); in onBodySynthesis()
/external/clang/lib/Frontend/
DLogDiagnosticPrinter.cpp120 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
DFrontendActions.cpp621 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in ExecuteAction()
622 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
687 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
DASTUnit.cpp1614 if (!File || File == SourceMgr.getFileEntryForID(SourceMgr.getMainFileID())) in getMainBufferWithPrecompiledPreamble()
1685 FE = SourceMgr->getFileEntryForID(SourceMgr->getMainFileID())) in getMainFileName()
2680 = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in mapLocationFromPreamble()
2699 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2722 FID = SourceMgr->getMainFileID(); in isInMainFileID()
2744 FID = SourceMgr->getMainFileID(); in getStartOfMainFileID()
DCacheTokens.cpp576 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
DCompilerInstance.cpp731 assert(SourceMgr.getMainFileID().isValid() && in InitializeSourceManager()
782 assert(SourceMgr.getMainFileID().isValid() && in InitializeSourceManager()
/external/clang/tools/libclang/
DIndexing.cpp262 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); in FileChanged()
266 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID())); in FileChanged()
372 if (SM.getMainFileID() == FID) in shouldSkipFunctionBody()
/external/llvm/include/llvm/Support/
DSourceMgr.h111 unsigned getMainFileID() const { in getMainFileID() function
/external/clang/lib/Lex/
DPreprocessor.cpp405 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()) == File) { in SetCodeCompletionPoint()
498 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
DPPLexerChange.cpp483 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
DPPDirectives.cpp637 if (FID == SourceMgr.getMainFileID() && MainFileDir) in LookupFile()
640 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()))) in LookupFile()
/external/llvm/lib/TableGen/
DTGLexer.cpp30 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp207 yaml::Input In(SM.getMemoryBuffer(SM.getMainFileID())->getBuffer(), in parse()
673 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.h755 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function
1339 return getFileID(Loc) == getMainFileID(); in isWrittenInMainFile()
/external/llvm/lib/MC/
DMCContext.cpp57 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); in MCContext()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp248 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp435 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in EmitCXXGlobalInitFunc()
DCodeGenAction.cpp747 FileID FID = SM.getMainFileID(); in ExecuteAction()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp508 PlatformParser(nullptr), CurBuffer(SM.getMainFileID()), in AsmParser()
1858 DiagCurBuffer != DiagSrcMgr.getMainFileID()) { in DiagHandler()
4796 SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer(); in parseMSInlineAsm()
/external/clang/lib/Serialization/
DASTWriter.cpp1439 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in WriteControlBlock()
1448 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()
1453 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()

12