Searched refs:MainFileID (Results 1 – 7 of 7) sorted by relevance
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 125 FileID MainFileID = SourceMgr.createMainFileIDForMemBuffer(Buf); in TEST_F() local 130 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid)); in TEST_F() 134 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid)); in TEST_F() 138 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid)); in TEST_F() 142 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid)); in TEST_F() 146 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source), in TEST_F() 151 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid); in TEST_F() 164 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, NULL)); in TEST_F()
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 641 FileID MainFileID; variable 739 assert(MainFileID.isInvalid() && "MainFileID already set!"); 740 MainFileID = createFileIDForMemBuffer(Buffer, Kind); 741 return MainFileID; 749 FileID getMainFileID() const { return MainFileID; } in getMainFileID() 754 assert(MainFileID.isInvalid() && "MainFileID already set!"); 755 MainFileID = createFileID(SourceFile, SourceLocation(), Kind); 756 return MainFileID; 761 assert(MainFileID.isInvalid() && "MainFileID already set!"); in setMainFileID() 762 MainFileID = FID; in setMainFileID()
|
/external/clang/lib/Lex/ |
D | Preprocessor.cpp | 463 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local 467 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile() 469 EnterSourceFile(MainFileID, 0, SourceLocation()); in EnterMainSourceFile() 479 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) in EnterMainSourceFile()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 414 MainFileID = FileID(); in clearIDTables() 1623 if (!MainFileID.isInvalid()) { in translateFile() 1625 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile() 1635 FirstFID = MainFileID; in translateFile() 1647 FirstFID = MainFileID; in translateFile()
|
/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 1271 llvm::sys::fs::UniqueID MainFileID; in ComputePreamble() local 1272 if (!llvm::sys::fs::getUniqueID(MainFilePath, MainFileID)) { in ComputePreamble() 1282 if (MainFileID == MID) { in ComputePreamble() 1308 if (MainFileID == MID) { in ComputePreamble()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteObjC.cpp | 68 FileID MainFileID; member in __anonc18055260111::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()
|
D | RewriteModernObjC.cpp | 69 FileID MainFileID; member in __anonecd5d26b0111::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() 6060 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit() 6077 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|