Home
last modified time | relevance | path

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

/external/clang/unittests/Basic/
DSourceManagerTest.cpp130 FileID MainFileID = SourceMgr.createFileID(std::move(Buf)); in TEST_F() local
131 SourceMgr.setMainFileID(MainFileID); in TEST_F()
136 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, &Invalid)); in TEST_F()
140 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 4, &Invalid)); in TEST_F()
144 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 7, &Invalid)); in TEST_F()
148 EXPECT_EQ(5U, SourceMgr.getColumnNumber(MainFileID, 11, &Invalid)); in TEST_F()
152 EXPECT_EQ(7U, SourceMgr.getColumnNumber(MainFileID, strlen(Source), in TEST_F()
157 SourceMgr.getColumnNumber(MainFileID, strlen(Source)+1, &Invalid); in TEST_F()
170 EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, nullptr)); in TEST_F()
/external/llvm/lib/ProfileData/
DCoverageMapping.cpp413 auto MainFileID = findMainViewFileID(Filename, Function); in getCoverageForFile() local
414 if (!MainFileID) in getCoverageForFile()
420 if (isExpansion(CR, *MainFileID)) in getCoverageForFile()
436 auto MainFileID = findMainViewFileID(Filename, Function); in getInstantiations() local
437 if (!MainFileID) in getInstantiations()
439 InstantiationSetCollector.insert(Function, *MainFileID); in getInstantiations()
454 auto MainFileID = findMainViewFileID(Function); in getCoverageForFunction() local
455 if (!MainFileID) in getCoverageForFunction()
458 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]); in getCoverageForFunction()
461 if (CR.FileID == *MainFileID) { in getCoverageForFunction()
[all …]
/external/clang/lib/Lex/
DPreprocessor.cpp498 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile() local
502 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile()
504 EnterSourceFile(MainFileID, nullptr, SourceLocation()); in EnterMainSourceFile()
514 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID)) in EnterMainSourceFile()
/external/clang/include/clang/Basic/
DSourceManager.h658 FileID MainFileID; variable
755 FileID getMainFileID() const { return MainFileID; } in getMainFileID()
759 MainFileID = FID; in setMainFileID()
/external/clang/lib/Basic/
DSourceManager.cpp395 MainFileID = FileID(); in clearIDTables()
1610 if (MainFileID.isValid()) { in translateFile()
1612 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile()
1622 FirstFID = MainFileID; in translateFile()
1634 FirstFID = MainFileID; in translateFile()
/external/clang/lib/Frontend/
DASTUnit.cpp1200 llvm::sys::fs::UniqueID MainFileID; in ComputePreamble() local
1201 if (!llvm::sys::fs::getUniqueID(MainFilePath, MainFileID)) { in ComputePreamble()
1207 if (MainFileID == MID) { in ComputePreamble()
1222 if (MainFileID == MID) { in ComputePreamble()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp70 FileID MainFileID; member in __anon216405dd0111::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()
4937 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit()
4944 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()
DRewriteModernObjC.cpp70 FileID MainFileID; member in __anon7b9ef0620111::RewriteModernObjC
706 MainFileID = SM->getMainFileID(); in InitializeCommon()
707 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID); in InitializeCommon()
812 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude()
813 StringRef MainBuf = SM->getBufferData(MainFileID); in RewriteInclude()
5935 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false); in HandleTranslationUnit()
5952 Rewrite.getRewriteBufferFor(MainFileID)) { in HandleTranslationUnit()