Home
last modified time | relevance | path

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

/external/clang/lib/Rewrite/Frontend/
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.cpp66 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
DInclusionRewriter.cpp361 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
DRewriteObjC.cpp634 MainFileID = SM->getMainFileID(); in InitializeCommon()
DRewriteModernObjC.cpp697 MainFileID = SM->getMainFileID(); in InitializeCommon()
/external/clang/lib/Frontend/
DFrontendActions.cpp328 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in ExecuteAction()
329 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
400 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
DLogDiagnosticPrinter.cpp130 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
DASTUnit.cpp1639 = SourceMgr.getBuffer(SourceMgr.getMainFileID()); in getMainBufferWithPrecompiledPreamble()
1707 FE = SourceMgr->getFileEntryForID(SourceMgr->getMainFileID())) in getMainFileName()
2735 = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in mapLocationFromPreamble()
2754 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2777 FID = SourceMgr->getMainFileID(); in isInMainFileID()
2799 FID = SourceMgr->getMainFileID(); in getStartOfMainFileID()
DCompilerInstance.cpp593 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager()
638 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager()
DCacheTokens.cpp542 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
/external/clang/lib/CodeGen/
DCodeGenAction.cpp376 const llvm::MemoryBuffer *MainFile = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
391 SM.getFileEntryForID(SM.getMainFileID()), Err.getLineNo(), in ExecuteAction()
DCGObjCGNU.cpp2515 const FileEntry *mainFile = SM.getFileEntryForID(SM.getMainFileID()); in ModuleInitFunction()
DCGDebugInfo.cpp305 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in CreateCompileUnit()
/external/clang/tools/libclang/
DIndexing.cpp260 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); in FileChanged()
264 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID())); in FileChanged()
378 if (SM.getMainFileID() == FID) in shouldSkipFunctionBody()
DCIndex.cpp4223 FileID MainID = TU->getSourceManager().getMainFileID(); in getRawCursorExtent()
/external/clang/lib/Lex/
DPPLexerChange.cpp370 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
DPreprocessor.cpp461 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
DPPDirectives.cpp526 FID = SourceMgr.getMainFileID(); in LookupFile()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp180 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/external/clang/include/clang/Basic/
DSourceManager.h742 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function
1276 return getFileID(Loc) == getMainFileID(); in isFromMainFile()
/external/clang/lib/Serialization/
DASTWriter.cpp1175 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in WriteControlBlock()
1191 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()
1196 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()