Home
last modified time | relevance | path

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

/external/clang/unittests/Basic/
DSourceManagerTest.cpp124 FileID MainFileID = SourceMgr.createMainFileIDForMemBuffer(Buf); in TEST_F() local
129 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid)); in TEST_F()
133 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid)); in TEST_F()
137 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid)); in TEST_F()
141 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid)); in TEST_F()
145 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source), in TEST_F()
150 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid); in TEST_F()
163 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, NULL)); in TEST_F()
/external/clang/include/clang/Basic/
DSourceManager.h641 FileID MainFileID; variable
732 assert(MainFileID.isInvalid() && "MainFileID already set!");
733 MainFileID = createFileIDForMemBuffer(Buffer, Kind);
734 return MainFileID;
742 FileID getMainFileID() const { return MainFileID; } in getMainFileID()
747 assert(MainFileID.isInvalid() && "MainFileID already set!");
748 MainFileID = createFileID(SourceFile, SourceLocation(), Kind);
749 return MainFileID;
754 assert(MainFileID.isInvalid() && "MainFileID already set!"); in setMainFileID()
755 MainFileID = FID; in setMainFileID()
/external/clang/lib/Lex/
DPreprocessor.cpp461 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local
465 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile()
467 EnterSourceFile(MainFileID, 0, SourceLocation()); in EnterMainSourceFile()
477 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) in EnterMainSourceFile()
/external/clang/lib/Basic/
DSourceManager.cpp414 MainFileID = FileID(); in clearIDTables()
1514 if (!MainFileID.isInvalid()) { in translateFile()
1516 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile()
1526 FirstFID = MainFileID; in translateFile()
1537 FirstFID = MainFileID; in translateFile()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp68 FileID MainFileID; member in __anon888766420111::RewriteObjC
634 MainFileID = SM->getMainFileID(); in InitializeCommon()
635 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in InitializeCommon()
733 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude()
734 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude()
5027 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit()
5034 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
DRewriteModernObjC.cpp69 FileID MainFileID; member in __anona68448870111::RewriteModernObjC
697 MainFileID = SM->getMainFileID(); in InitializeCommon()
698 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in InitializeCommon()
803 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude()
804 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude()
6054 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit()
6071 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()