Home
last modified time | relevance | path

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

12

/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 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process()
545 Rewrite->Process(SM.getMainFileID(), SrcMgr::C_User); in RewriteIncludesInInput()
/external/clang/lib/Frontend/
DLogDiagnosticPrinter.cpp118 FileID FID = SM.getMainFileID(); in HandleDiagnostic()
DFrontendActions.cpp552 const llvm::MemoryBuffer *FromFile = SM.getBuffer(SM.getMainFileID()); in ExecuteAction()
553 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in ExecuteAction()
624 const llvm::MemoryBuffer *Buffer = SM.getBuffer(SM.getMainFileID(), in ExecuteAction()
DASTUnit.cpp1644 if (!File || File == SourceMgr.getFileEntryForID(SourceMgr.getMainFileID())) in getMainBufferWithPrecompiledPreamble()
1716 FE = SourceMgr->getFileEntryForID(SourceMgr->getMainFileID())) in getMainFileName()
2703 = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in mapLocationFromPreamble()
2722 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2745 FID = SourceMgr->getMainFileID(); in isInMainFileID()
2767 FID = SourceMgr->getMainFileID(); in getStartOfMainFileID()
DCacheTokens.cpp566 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID()); in CacheTokens()
DCompilerInstance.cpp709 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager()
760 assert(!SourceMgr.getMainFileID().isInvalid() && in InitializeSourceManager()
/external/clang/lib/Lex/
DPPLexerChange.cpp450 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
487 = SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in HandleEndOfFile()
DPreprocessor.cpp461 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
DPPDirectives.cpp584 FileEnt = SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()); in LookupFile()
/external/llvm/include/llvm/Support/
DSourceMgr.h106 unsigned getMainFileID() const { in getMainFileID() function
/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/lib/TableGen/
DTGLexer.cpp30 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
/external/llvm/lib/MC/
DMCContext.cpp52 SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier(); in MCContext()
/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp178 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID()); in isInMainFile()
/external/clang/include/clang/Basic/
DSourceManager.h752 FileID getMainFileID() const { return MainFileID; } in getMainFileID() function
1314 return getFileID(Loc) == getMainFileID(); in isWrittenInMainFile()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp245 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp389 SM.getFileEntryForID(SM.getMainFileID())->getName())); in EmitCXXGlobalInitFunc()
DCodeGenAction.cpp644 FileID FID = SM.getMainFileID(); in ExecuteAction()
DCGObjCGNU.cpp2496 const FileEntry *mainFile = SM.getFileEntryForID(SM.getMainFileID()); in ModuleInitFunction()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp494 PlatformParser(nullptr), CurBuffer(_SM.getMainFileID()), in AsmParser()
1705 DiagCurBuffer != DiagSrcMgr.getMainFileID()) { in DiagHandler()
4585 SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer(); in parseMSInlineAsm()
/external/clang/lib/Serialization/
DASTWriter.cpp1238 if (const FileEntry *MainFile = SM.getFileEntryForID(SM.getMainFileID())) { in WriteControlBlock()
1254 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()
1259 Record.push_back(SM.getMainFileID().getOpaqueValue()); in WriteControlBlock()
DASTReader.cpp1305 assert(!SourceMgr.getMainFileID().isInvalid() && "missing main file"); in getImportLocation()
1306 return SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in getImportLocation()

12