Searched refs:getMainFileID (Results 1 – 22 of 22) sorted by relevance
/external/clang/lib/Rewrite/ |
D | RewriteMacros.cpp | 68 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()
|
D | RewriteTest.cpp | 23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest()
|
D | HTMLPrint.cpp | 66 FileID FID = R.getSourceMgr().getMainFileID(); in HandleTranslationUnit()
|
D | RewriteObjC.cpp | 628 MainFileID = SM->getMainFileID(); in InitializeCommon()
|
D | RewriteModernObjC.cpp | 639 MainFileID = SM->getMainFileID(); in InitializeCommon()
|
/external/clang/lib/Frontend/ |
D | FrontendActions.cpp | 366 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()
|
D | VerifyDiagnosticConsumer.cpp | 510 FindExpectedDiags(*CurrentPreprocessor, ED, SM.getMainFileID()); in CheckDiagnostics() 515 if (!FirstErrorFID.isInvalid() && FirstErrorFID != SM.getMainFileID() in CheckDiagnostics() 518 SM.getFileEntryForID(SM.getMainFileID())))) { in CheckDiagnostics()
|
D | LogDiagnosticPrinter.cpp | 129 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
|
D | ASTUnit.cpp | 1605 = 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()
|
D | CompilerInstance.cpp | 627 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager() 867 CurFile = SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()); in loadModule()
|
D | CacheTokens.cpp | 542 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
|
/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 374 const llvm::MemoryBuffer *MainFile = SM.getBuffer(SM.getMainFileID(), in ExecuteAction() 389 SM.getFileEntryForID(SM.getMainFileID()), Err.getLineNo(), in ExecuteAction()
|
D | CGObjCGNU.cpp | 2318 const FileEntry *mainFile = SM.getFileEntryForID(SM.getMainFileID()); in ModuleInitFunction()
|
D | CGDebugInfo.cpp | 292 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in CreateCompileUnit()
|
/external/clang/tools/libclang/ |
D | Indexing.cpp | 59 SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID()); in FileChanged() 63 IndexCtx.enteredMainFile(SM.getFileEntryForID(SM.getMainFileID())); in FileChanged()
|
D | CIndex.cpp | 4047 FileID MainID = TU->getSourceManager().getMainFileID(); in getRawCursorExtent()
|
/external/clang/lib/Lex/ |
D | PPLexerChange.cpp | 355 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
|
D | Preprocessor.cpp | 405 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
|
D | PPDirectives.cpp | 513 FID = SourceMgr.getMainFileID(); in LookupFile()
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 620 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function 1079 return getFileID(Loc) == getMainFileID(); in isFromMainFile()
|
/external/clang/lib/ARCMigrate/ |
D | TransGCAttrs.cpp | 180 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 1023 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in WriteMetadata() 1041 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteMetadata()
|