Searched refs:MainFileID (Results 1 - 10 of 10) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp212 const FileID MainFileID = SourceMgr.getMainFileID(); local
214 if (SymbolOffset >= SourceMgr.getFileIDSize(MainFileID)) {
220 << SourceMgr.getFileEntryForID(MainFileID)->getName() << SymbolOffset;
224 const SourceLocation Point = SourceMgr.getLocForStartOfFile(MainFileID)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp659 auto MainFileID = findMainViewFileID(Filename, Function);
664 if (MainFileID && isExpansion(CR, *MainFileID))
684 auto MainFileID = findMainViewFileID(Filename, Function);
685 if (!MainFileID)
687 InstantiationSetCollector.insert(Function, *MainFileID);
702 auto MainFileID = findMainViewFileID(Function);
703 if (!MainFileID)
706 CoverageData FunctionCoverage(Function.Filenames[*MainFileID]);
709 if (CR.FileID == *MainFileID) {
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp120 FileID MainFileID = Instance.getSourceManager().getMainFileID(); local
122 Instance.getSourceManager().getFileEntryForID(MainFileID)->getName());
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp375 MainFileID = FileID();
393 assert(MainFileID.isValid() && "expected initialized SourceManager");
394 auto FE = getFileEntryRefForID(MainFileID);
401 assert(MainFileID.isInvalid() && "expected uninitialized SourceManager");
1669 if (MainFileID.isValid()) {
1671 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid);
1679 return MainFileID;
1800 (FID == MainFileID && Entry.getFile().Filename == "<built-in>");
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp541 FileID MainFileID = SourceMgr.getMainFileID(); local
543 // If MainFileID is loaded it means we loaded an AST file, no need to enter
545 if (!SourceMgr.isLoadedFileID(MainFileID)) {
547 EnterSourceFile(MainFileID, nullptr, SourceLocation());
557 if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID))
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendAction.cpp234 auto MainFileID = SourceMgr.getMainFileID(); local
237 const auto *MainFileBuf = SourceMgr.getBuffer(MainFileID, &Invalid);
242 new Lexer(MainFileID, MainFileBuf, SourceMgr, CI.getLangOpts()));
H A DASTUnit.cpp170 llvm::sys::fs::UniqueID MainFileID = FileStatus->getUniqueID(); local
178 if (MainFileID == MID) {
194 if (MainFileID == MID) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h707 FileID MainFileID; member in class:clang::SourceManager
805 // MainFileID creation and querying methods.
809 FileID getMainFileID() const { return MainFileID; }
813 MainFileID = FID;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp70 FileID MainFileID; member in class:__anon1907::RewriteModernObjC
703 MainFileID = SM->getMainFileID();
704 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
805 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
806 StringRef MainBuf = SM->getBufferData(MainFileID);
5849 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false);
5863 // Get the buffer corresponding to MainFileID. If we haven't changed it, then
5866 Rewrite.getRewriteBufferFor(MainFileID)) {
H A DRewriteObjC.cpp69 FileID MainFileID; member in class:__anon1910::RewriteObjC
632 MainFileID = SM->getMainFileID();
633 const llvm::MemoryBuffer *MainBuf = SM->getBuffer(MainFileID);
731 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
732 StringRef MainBuf = SM->getBufferData(MainFileID);
4921 InsertText(SM->getLocForStartOfFile(MainFileID), Preamble, false);
4925 // Get the buffer corresponding to MainFileID. If we haven't changed it, then
4928 Rewrite.getRewriteBufferFor(MainFileID)) {

Completed in 115 milliseconds