Home
last modified time | relevance | path

Searched refs:MainFileID (Results 1 – 4 of 4) sorted by relevance

/external/clang/include/clang/Basic/
DSourceManager.h505 FileID MainFileID; variable
539 assert(MainFileID.isInvalid() && "MainFileID already set!"); in createMainFileIDForMemBuffer()
540 MainFileID = createFileIDForMemBuffer(Buffer); in createMainFileIDForMemBuffer()
541 return MainFileID; in createMainFileIDForMemBuffer()
549 FileID getMainFileID() const { return MainFileID; } in getMainFileID()
553 assert(MainFileID.isInvalid() && "MainFileID already set!"); in createMainFileID()
554 MainFileID = createFileID(SourceFile, SourceLocation(), SrcMgr::C_User); in createMainFileID()
555 return MainFileID; in createMainFileID()
561 assert(MainFileID.isInvalid() && "MainFileID already set!"); in SetPreambleFileID()
562 MainFileID = Preamble; in SetPreambleFileID()
/external/clang/lib/Lex/
DPreprocessor.cpp363 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local
366 EnterSourceFile(MainFileID, 0, SourceLocation()); in EnterMainSourceFile()
376 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) in EnterMainSourceFile()
/external/clang/lib/Basic/
DSourceManager.cpp393 MainFileID = FileID(); in clearIDTables()
1320 if (!MainFileID.isInvalid()) { in getLocation()
1322 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in getLocation()
1332 FirstFID = MainFileID; in getLocation()
1344 FirstFID = MainFileID; in getLocation()
/external/clang/lib/Rewrite/
DRewriteObjC.cpp66 FileID MainFileID; member in __anon83c1dbf00111::RewriteObjC
561 MainFileID = SM->getMainFileID(); in Initialize()
562 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in Initialize()
733 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude()
734 llvm::StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude()
5935 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit()
5942 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()