Home
last modified time | relevance | path

Searched refs:getFileEntry (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileEntryTest.cpp66 EXPECT_NE(&R1.getFileEntry(), &R2.getFileEntry()); in TEST()
67 EXPECT_EQ(&R1.getFileEntry(), &R1Also.getFileEntry()); in TEST()
70 EXPECT_EQ(CE1, &R1.getFileEntry()); in TEST()
97 EXPECT_EQ(R1, &R1.getFileEntry()); in TEST()
98 EXPECT_EQ(&R1.getFileEntry(), R1); in TEST()
100 EXPECT_NE(R1, &R2.getFileEntry()); in TEST()
101 EXPECT_NE(&R2.getFileEntry(), R1); in TEST()
106 EXPECT_EQ(M1, &R1.getFileEntry()); in TEST()
107 EXPECT_EQ(&R1.getFileEntry(), M1); in TEST()
108 EXPECT_NE(M1, &R2.getFileEntry()); in TEST()
[all …]
H A DFileManagerTest.cpp290 EXPECT_EQ(&F1->getFileEntry(), &F1Alias->getFileEntry()); in TEST_F()
291 EXPECT_EQ(&F1->getFileEntry(), &F1Alias2->getFileEntry()); in TEST_F()
309 EXPECT_EQ(&F2->getFileEntry(), &F2Alias->getFileEntry()); in TEST_F()
310 EXPECT_EQ(&F2->getFileEntry(), &F2Alias2->getFileEntry()); in TEST_F()
360 EXPECT_EQ(&F1->getFileEntry(), *F1); in TEST_F()
361 EXPECT_EQ(*F1, &F1->getFileEntry()); in TEST_F()
362 EXPECT_NE(&F2->getFileEntry(), *F1); in TEST_F()
363 EXPECT_NE(*F1, &F2->getFileEntry()); in TEST_F()
530 EXPECT_EQ(&FE, &SearchRef->getFileEntry()); in TEST_F()
541 EXPECT_NE(&BypassRef->getFileEntry(), File); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DFileEntry.h63 const FileEntry &getFileEntry() const { in getFileEntry() function
78 return &LHS.getFileEntry() == &RHS.getFileEntry();
81 return LHS == &RHS.getFileEntry();
84 return &LHS.getFileEntry() == RHS;
99 return llvm::hash_value(&Ref.getFileEntry()); in hash_value()
147 operator const FileEntry *() const { return &getFileEntry(); }
316 return has_value() ? &value().getFileEntry() : nullptr;
380 off_t FileEntryRef::getSize() const { return getFileEntry().getSize(); }
385 return getFileEntry().getUniqueID();
389 return getFileEntry().getModificationTime();
[all …]
H A DSourceLocation.h409 const FileEntry *getFileEntry() const;
H A DSourceManager.h968 overrideFileContents(&SourceFile.getFileEntry(), std::move(Buffer)); in overrideFileContents()
1613 return translateFile(&SourceFile.getFileEntry()); in translateFile()
/llvm-project-15.0.7/clang/lib/Lex/
H A DHeaderSearch.cpp420 &File->getFileEntry(), Dir ? Dir : File->getFileEntry().getDir(), in getFileAndSuggestModule()
667 StringRef FrameworkPath = File->getFileEntry().getDir()->getName(); in DoFrameworkLookup()
691 &File->getFileEntry(), FrameworkPath, RequestingModule, in DoFrameworkLookup()
695 if (!HS.findUsableModuleForHeader(&File->getFileEntry(), getDir(), in DoFrameworkLookup()
926 HeaderFileInfo &ToHFI = getFileInfo(&FE->getFileEntry()); in LookupFile()
943 &FE->getFileEntry()); in LookupFile()
1034 const auto FE = &File->getFileEntry(); in LookupFile()
1075 &File->getFileEntry(), IncludeLoc)) { in LookupFile()
1085 &File->getFileEntry(), isAngled, FoundByHeaderMap); in LookupFile()
1111 File ? &File->getFileEntry() : nullptr, in LookupFile()
[all …]
H A DPreprocessorLexer.cpp51 PreprocessorLexer::getFileEntry() const { in getFileEntry() function in PreprocessorLexer
H A DPPDirectives.cpp997 if ((FileEnt = ISEntry.ThePPLexer->getFileEntry())) in LookupFile()
1018 if (&FE->getFileEntry() == FromFile) { in LookupFile()
1045 if ((CurFileEnt = CurPPLexer->getFileEntry())) { in LookupFile()
1060 if ((CurFileEnt = ISEntry.ThePPLexer->getFileEntry())) { in LookupFile()
1930 LookupFromFile = CurPPLexer->getFileEntry(); in getIncludeNextStart()
2186 if (File && isPCHThroughHeader(&File->getFileEntry())) in HandleHeaderIncludeOrImport()
2312 FileCharacter = std::max(HeaderInfo.getFileDirFlavor(&File->getFileEntry()), in HandleHeaderIncludeOrImport()
2329 !HeaderInfo.ShouldEnterIncludeFile(*this, &File->getFileEntry(), in HandleHeaderIncludeOrImport()
2354 SourceMgr.isMainFile(File->getFileEntry())) { in HandleHeaderIncludeOrImport()
2386 !IsMapped && !File->getFileEntry().tryGetRealPathName().empty(); in HandleHeaderIncludeOrImport()
[all …]
H A DPragma.cpp417 HeaderInfo.MarkFileIncludeOnce(getCurrentFileLexer()->getFileEntry()); in HandlePragmaOnce()
482 HeaderInfo.MarkFileSystemHeader(TheLexer->getFileEntry()); in HandlePragmaSystemHeader()
539 const FileEntry *CurFile = getCurrentFileLexer()->getFileEntry(); in HandlePragmaDependency()
H A DPPLexerChange.cpp359 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
H A DPPMacroExpansion.cpp1245 PP.getHeaderSearchInfo().getFileDirFlavor(&File->getFileEntry()); in EvaluateHasIncludeCommon()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeaders.cpp67 std::string(File ? File->getFileEntry().tryGetRealPathName() : ""); in InclusionDirective()
263 if (&Entry.getFileEntry() == MainFileEntry) { in getOrCreateID()
276 RealPathName = Entry.getFileEntry().tryGetRealPathName().str(); in getOrCreateID()
H A DIncludeCleaner.cpp283 &FE->getFileEntry())) { in mayConsiderUnused()
H A DDiagnostics.cpp202 N.AbsFile = std::string(FE.getFileEntry().tryGetRealPathName()); in tryMoveToMainFile()
/llvm-project-15.0.7/clang/lib/Basic/
H A DFileManager.cpp200 return &Result->getFileEntry(); in getFile()
408 FileEntry &FE = const_cast<FileEntry &>(STDIN->getFileEntry()); in getSTDIN()
416 return &getVirtualFileRef(Filename, Size, ModificationTime).getFileEntry(); in getVirtualFile()
520 BFE->Dir = VF.getFileEntry().Dir; in getBypassFile()
H A DSourceLocation.cpp221 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() function in FullSourceLoc
H A DSarif.cpp198 const FileEntry *FE = Start.getExpansionLoc().getFileEntry(); in createPhysicalLocation()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessorLexer.h160 OptionalFileEntryRefDegradesToFileEntryPtr getFileEntry() const;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp266 *P.asLocation().getExpansionLoc().getFileEntry(), in createThreadFlow()
297 *Diag.getLocation().asLocation().getExpansionLoc().getFileEntry(), in createResult()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DASTUnitTest.cpp154 &File->getFileEntry())); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DIndexAction.cpp34 auto AbsolutePath = File->getFileEntry().tryGetRealPathName(); in toURI()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXIndexDataConsumer.cpp473 const FileEntry *FE = File ? &File->getFileEntry() : nullptr; in ppIncludedFile()
503 FE = const_cast<FileEntry *>(&File->getFileEntry()); in importedModule()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp801 if (const FileEntry *FE = Loc.getFileEntry()) { in emitDiagnosticLoc()
H A DFrontendActions.cpp326 {std::string(Name), std::string(Name), &FE->getFileEntry()}); in BeginSourceFileAction()
H A DFrontendAction.cpp829 FileName = FE->getFileEntry().getName(); in BeginSourceFile()

12