/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 131 FileID MainFileID = SourceMgr.createFileID(std::move(Buf)); in TEST_F() local 132 SourceMgr.setMainFileID(MainFileID); in TEST_F() 137 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid)); in TEST_F() 141 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid)); in TEST_F() 145 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid)); in TEST_F() 149 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid)); in TEST_F() 153 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source), in TEST_F() 158 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid); in TEST_F() 171 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, nullptr)); in TEST_F()
|
/external/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 464 auto MainFileID = findMainViewFileID(Filename, Function); in getCoverageForFile() local 469 if (MainFileID && isExpansion(CR, *MainFileID)) in getCoverageForFile() 484 auto MainFileID = findMainViewFileID(Filename, Function); in getInstantiations() local 485 if (!MainFileID) in getInstantiations() 487 InstantiationSetCollector.insert(Function, *MainFileID); in getInstantiations() 502 auto MainFileID = findMainViewFileID(Function); in getCoverageForFunction() local 503 if (!MainFileID) in getCoverageForFunction() 506 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]); in getCoverageForFunction() 509 if (CR.FileID == *MainFileID) { in getCoverageForFunction() 511 if (isExpansion(CR, *MainFileID)) in getCoverageForFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 606 auto MainFileID = findMainViewFileID(Filename, Function); in getCoverageForFile() local 611 if (MainFileID && isExpansion(CR, *MainFileID)) in getCoverageForFile() 626 auto MainFileID = findMainViewFileID(Filename, Function); in getInstantiationGroups() local 627 if (!MainFileID) in getInstantiationGroups() 629 InstantiationSetCollector.insert(Function, *MainFileID); in getInstantiationGroups() 644 auto MainFileID = findMainViewFileID(Function); in getCoverageForFunction() local 645 if (!MainFileID) in getCoverageForFunction() 648 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]); in getCoverageForFunction() 651 if (CR.FileID == *MainFileID) { in getCoverageForFunction() 653 if (isExpansion(CR, *MainFileID)) in getCoverageForFunction()
|
/external/clang/lib/Lex/ |
D | Preprocessor.cpp | 501 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local 505 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile() 507 EnterSourceFile(MainFileID, nullptr, SourceLocation()); in EnterMainSourceFile() 517 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) in EnterMainSourceFile()
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 657 FileID MainFileID; variable 754 FileID getMainFileID() const { return MainFileID; } in getMainFileID() 758 MainFileID = FID; in setMainFileID()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 395 MainFileID = FileID(); in clearIDTables() 1617 if (MainFileID.isValid()) { in translateFile() 1619 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile() 1629 FirstFID = MainFileID; in translateFile() 1641 FirstFID = MainFileID; in translateFile()
|
/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 1198 llvm::sys::fs::UniqueID MainFileID; in ComputePreamble() local 1199 if (!llvm::sys::fs::getUniqueID(MainFilePath, MainFileID)) { in ComputePreamble() 1205 if (MainFileID == MID) { in ComputePreamble() 1220 if (MainFileID == MID) { in ComputePreamble()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 69 FileID MainFileID; member in __anonc8a4c0a50111::RewriteObjC 632 MainFileID = SM->getMainFileID(); in InitializeCommon() 633 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in InitializeCommon() 731 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() 732 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude() 4917 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit() 4924 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|
D | RewriteModernObjC.cpp | 70 FileID MainFileID; member in __anon8682a12a0111::RewriteModernObjC 700 MainFileID = SM->getMainFileID(); in InitializeCommon() 701 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in InitializeCommon() 802 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() 803 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude() 5857 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit() 5874 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|