/external/llvm-project/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 114 FileID MainFileID = SourceMgr.createFileID(std::move(Buf)); in TEST_F() local 115 SourceMgr.setMainFileID(MainFileID); in TEST_F() 120 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid)); in TEST_F() 124 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid)); in TEST_F() 128 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid)); in TEST_F() 132 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid)); in TEST_F() 136 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source), in TEST_F() 141 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid); in TEST_F() 154 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, nullptr)); in TEST_F() 178 FileID MainFileID = SourceMgr.getOrCreateFileID(SourceFile, SrcMgr::C_User); in TEST_F() local [all …]
|
/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/llvm-project/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 667 auto MainFileID = findMainViewFileID(Filename, Function); in getCoverageForFile() local 672 if (MainFileID && isExpansion(CR, *MainFileID)) in getCoverageForFile() 692 auto MainFileID = findMainViewFileID(Filename, Function); in getInstantiationGroups() local 693 if (!MainFileID) in getInstantiationGroups() 695 InstantiationSetCollector.insert(Function, *MainFileID); in getInstantiationGroups() 710 auto MainFileID = findMainViewFileID(Function); in getCoverageForFunction() local 711 if (!MainFileID) in getCoverageForFunction() 714 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]); in getCoverageForFunction() 717 if (CR.FileID == *MainFileID) { in getCoverageForFunction() 719 if (isExpansion(CR, *MainFileID)) in getCoverageForFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 658 auto MainFileID = findMainViewFileID(Filename, Function); in getCoverageForFile() local 663 if (MainFileID && isExpansion(CR, *MainFileID)) in getCoverageForFile() 683 auto MainFileID = findMainViewFileID(Filename, Function); in getInstantiationGroups() local 684 if (!MainFileID) in getInstantiationGroups() 686 InstantiationSetCollector.insert(Function, *MainFileID); in getInstantiationGroups() 701 auto MainFileID = findMainViewFileID(Function); in getCoverageForFunction() local 702 if (!MainFileID) in getCoverageForFunction() 705 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]); in getCoverageForFunction() 708 if (CR.FileID == *MainFileID) { in getCoverageForFunction() 710 if (isExpansion(CR, *MainFileID)) in getCoverageForFunction()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
D | USRFindingAction.cpp | 240 const FileID MainFileID = SourceMgr.getMainFileID(); in FindSymbol() local 242 if (SymbolOffset >= SourceMgr.getFileIDSize(MainFileID)) { in FindSymbol() 248 << SourceMgr.getFileEntryForID(MainFileID)->getName() << SymbolOffset; in FindSymbol() 252 const SourceLocation Point = SourceMgr.getLocForStartOfFile(MainFileID) in FindSymbol()
|
/external/llvm-project/clang/lib/Tooling/DependencyScanning/ |
D | ModuleDepCollector.cpp | 115 FileID MainFileID = Instance.getSourceManager().getMainFileID(); in EndOfMainFile() local 117 Instance.getSourceManager().getFileEntryForID(MainFileID)->getName()); in EndOfMainFile()
|
/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/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 331 MainFileID = FileID(); in clearIDTables() 349 assert(MainFileID.isValid() && "expected initialized SourceManager"); in isMainFile() 350 if (auto *FE = getFileEntryForID(MainFileID)) in isMainFile() 356 assert(MainFileID.isInvalid() && "expected uninitialized SourceManager"); in initializeForReplay() 1606 if (MainFileID.isValid()) { in translateFile() 1608 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile() 1614 return MainFileID; in translateFile() 1737 (FID == MainFileID && Entry.getFile().getName() == "<built-in>"); in computeMacroArgsCache()
|
/external/llvm-project/clang/lib/Lex/ |
D | Preprocessor.cpp | 539 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local 543 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile() 545 EnterSourceFile(MainFileID, nullptr, SourceLocation()); in EnterMainSourceFile() 555 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/llvm-project/clang/lib/Frontend/ |
D | FrontendAction.cpp | 234 auto MainFileID = SourceMgr.getMainFileID(); in ReadOriginalFileName() local 236 auto MainFileBuf = SourceMgr.getBufferOrNone(MainFileID); in ReadOriginalFileName() 241 new Lexer(MainFileID, *MainFileBuf, SourceMgr, CI.getLangOpts())); in ReadOriginalFileName()
|
D | ASTUnit.cpp | 171 llvm::sys::fs::UniqueID MainFileID = FileStatus->getUniqueID(); in getBufferForFileHandlingRemapping() local 179 if (MainFileID == MID) { in getBufferForFileHandlingRemapping() 195 if (MainFileID == MID) { in getBufferForFileHandlingRemapping()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | SourceManager.h | 736 FileID MainFileID; variable 840 FileID getMainFileID() const { return MainFileID; } in getMainFileID() 844 MainFileID = FID; in setMainFileID()
|
/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 __anon88d555830111::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 __anon16d2e4880111::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()
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 69 FileID MainFileID; member in __anonb2913bb10111::RewriteObjC 633 MainFileID = SM->getMainFileID(); in InitializeCommon() 634 llvm::MemoryBufferRef MainBuf = SM->getBufferOrFake(MainFileID); in InitializeCommon() 732 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() 733 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude() 4927 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit() 4934 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|
D | RewriteModernObjC.cpp | 70 FileID MainFileID; member in __anon085a35360111::RewriteModernObjC 704 MainFileID = SM->getMainFileID(); in InitializeCommon() 705 llvm::MemoryBufferRef MainBuf = SM->getBufferOrFake(MainFileID); in InitializeCommon() 806 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() 807 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude() 5856 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit() 5873 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
|