Home
last modified time | relevance | path

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

/external/clang/lib/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.cpp66 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
DRewriteObjC.cpp628 MainFileID = SM->getMainFileID(); in InitializeCommon()
DRewriteModernObjC.cpp639 MainFileID = SM->getMainFileID(); in InitializeCommon()
/external/clang/lib/Frontend/
DFrontendActions.cpp366 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in ExecuteAction()
367 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
438 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
DVerifyDiagnosticConsumer.cpp510 FindExpectedDiags(*CurrentPreprocessor, ED, SM.getMainFileID()); in CheckDiagnostics()
515 if (!FirstErrorFID.isInvalid() && FirstErrorFID != SM.getMainFileID() in CheckDiagnostics()
518 SM.getFileEntryForID(SM.getMainFileID())))) { in CheckDiagnostics()
DLogDiagnosticPrinter.cpp129 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
DASTUnit.cpp1605 = SourceMgr.getBuffer(SourceMgr.getMainFileID()); in getMainBufferWithPrecompiledPreamble()
2664 = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in mapLocationFromPreamble()
2683 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2706 FID = SourceMgr->getMainFileID(); in isInMainFileID()
2728 FID = SourceMgr->getMainFileID(); in getStartOfMainFileID()
DCompilerInstance.cpp627 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager()
867 CurFile = SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()); in loadModule()
DCacheTokens.cpp542 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
/external/clang/lib/CodeGen/
DCodeGenAction.cpp374 const llvm::MemoryBuffer *MainFile = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
389 SM.getFileEntryForID(SM.getMainFileID()), Err.getLineNo(), in ExecuteAction()
DCGObjCGNU.cpp2318 const FileEntry *mainFile = SM.getFileEntryForID(SM.getMainFileID()); in ModuleInitFunction()
DCGDebugInfo.cpp292 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in CreateCompileUnit()
/external/clang/tools/libclang/
DIndexing.cpp59 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); in FileChanged()
63 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID())); in FileChanged()
DCIndex.cpp4047 FileID MainID = TU->getSourceManager().getMainFileID(); in getRawCursorExtent()
/external/clang/lib/Lex/
DPPLexerChange.cpp355 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
DPreprocessor.cpp405 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
DPPDirectives.cpp513 FID = SourceMgr.getMainFileID(); in LookupFile()
/external/clang/include/clang/Basic/
DSourceManager.h620 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function
1079 return getFileID(Loc) == getMainFileID(); in isFromMainFile()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp180 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/external/clang/lib/Serialization/
DASTWriter.cpp1023 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in WriteMetadata()
1041 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteMetadata()