| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | FileEntryTest.cpp | 66 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 D | FileManagerTest.cpp | 290 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 D | FileEntry.h | 63 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 D | SourceLocation.h | 409 const FileEntry *getFileEntry() const;
|
| H A D | SourceManager.h | 968 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 D | HeaderSearch.cpp | 420 &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 D | PreprocessorLexer.cpp | 51 PreprocessorLexer::getFileEntry() const { in getFileEntry() function in PreprocessorLexer
|
| H A D | PPDirectives.cpp | 997 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 D | Pragma.cpp | 417 HeaderInfo.MarkFileIncludeOnce(getCurrentFileLexer()->getFileEntry()); in HandlePragmaOnce() 482 HeaderInfo.MarkFileSystemHeader(TheLexer->getFileEntry()); in HandlePragmaSystemHeader() 539 const FileEntry *CurFile = getCurrentFileLexer()->getFileEntry(); in HandlePragmaDependency()
|
| H A D | PPLexerChange.cpp | 359 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
|
| H A D | PPMacroExpansion.cpp | 1245 PP.getHeaderSearchInfo().getFileDirFlavor(&File->getFileEntry()); in EvaluateHasIncludeCommon()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Headers.cpp | 67 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 D | IncludeCleaner.cpp | 283 &FE->getFileEntry())) { in mayConsiderUnused()
|
| H A D | Diagnostics.cpp | 202 N.AbsFile = std::string(FE.getFileEntry().tryGetRealPathName()); in tryMoveToMainFile()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | FileManager.cpp | 200 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 D | SourceLocation.cpp | 221 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() function in FullSourceLoc
|
| H A D | Sarif.cpp | 198 const FileEntry *FE = Start.getExpansionLoc().getFileEntry(); in createPhysicalLocation()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | PreprocessorLexer.h | 160 OptionalFileEntryRefDegradesToFileEntryPtr getFileEntry() const;
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SarifDiagnostics.cpp | 266 *P.asLocation().getExpansionLoc().getFileEntry(), in createThreadFlow() 297 *Diag.getLocation().asLocation().getExpansionLoc().getFileEntry(), in createResult()
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | ASTUnitTest.cpp | 154 &File->getFileEntry())); in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | IndexAction.cpp | 34 auto AbsolutePath = File->getFileEntry().tryGetRealPathName(); in toURI()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXIndexDataConsumer.cpp | 473 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 D | TextDiagnostic.cpp | 801 if (const FileEntry *FE = Loc.getFileEntry()) { in emitDiagnosticLoc()
|
| H A D | FrontendActions.cpp | 326 {std::string(Name), std::string(Name), &FE->getFileEntry()}); in BeginSourceFileAction()
|
| H A D | FrontendAction.cpp | 829 FileName = FE->getFileEntry().getName(); in BeginSourceFile()
|