Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/unittests/Basic/
DFileEntryTest.cpp53 const_cast<FileEntry &>(Base.getFileEntry()), DR)}) in addFileAlias()
68 EXPECT_NE(&R1.getFileEntry(), &R2.getFileEntry()); in TEST()
69 EXPECT_EQ(&R1.getFileEntry(), &R1Also.getFileEntry()); in TEST()
72 EXPECT_EQ(CE1, &R1.getFileEntry()); in TEST()
90 EXPECT_EQ(CE1, &M1->getFileEntry()); in TEST()
99 EXPECT_EQ(R1, &R1.getFileEntry()); in TEST()
100 EXPECT_EQ(&R1.getFileEntry(), R1); in TEST()
102 EXPECT_NE(R1, &R2.getFileEntry()); in TEST()
103 EXPECT_NE(&R2.getFileEntry(), R1); in TEST()
108 EXPECT_EQ(M1, &R1.getFileEntry()); in TEST()
[all …]
DFileManagerTest.cpp273 EXPECT_EQ((f1 ? *f1 : nullptr), &r1->getFileEntry()); in TEST_F()
274 EXPECT_EQ((f2 ? *f2 : nullptr), &r2->getFileEntry()); in TEST_F()
307 EXPECT_EQ("dir/f1.cpp", F1->getFileEntry().getName()); in TEST_F()
310 EXPECT_EQ(&F1->getFileEntry(), &F1Alias->getFileEntry()); in TEST_F()
311 EXPECT_EQ(&F1->getFileEntry(), &F1Alias2->getFileEntry()); in TEST_F()
326 EXPECT_EQ("dir/f2.cpp", F2->getFileEntry().getName()); in TEST_F()
329 EXPECT_EQ(&F2->getFileEntry(), &F2Alias->getFileEntry()); in TEST_F()
330 EXPECT_EQ(&F2->getFileEntry(), &F2Alias2->getFileEntry()); in TEST_F()
383 EXPECT_EQ(&F1->getFileEntry(), *F1); in TEST_F()
384 EXPECT_EQ(*F1, &F1->getFileEntry()); in TEST_F()
[all …]
/external/llvm-project/clang/include/clang/Basic/
DFileEntry.h60 const FileEntry &getFileEntry() const { in getFileEntry() function
75 return &LHS.getFileEntry() == &RHS.getFileEntry();
78 return LHS == &RHS.getFileEntry();
81 return &LHS.getFileEntry() == RHS;
96 return llvm::hash_value(&Ref.getFileEntry()); in hash_value()
144 operator const FileEntry *() const { return &getFileEntry(); }
313 return hasValue() ? &getValue().getFileEntry() : nullptr;
379 bool FileEntryRef::isValid() const { return getFileEntry().isValid(); }
381 off_t FileEntryRef::getSize() const { return getFileEntry().getSize(); }
383 unsigned FileEntryRef::getUID() const { return getFileEntry().getUID(); }
[all …]
DSourceLocation.h410 const FileEntry *getFileEntry() const;
/external/llvm-project/clang/lib/Lex/
DHeaderSearch.cpp367 &File->getFileEntry(), Dir ? Dir : File->getFileEntry().getDir(), in getFileAndSuggestModule()
613 StringRef FrameworkPath = File->getFileEntry().getDir()->getName(); in DoFrameworkLookup()
637 &File->getFileEntry(), FrameworkPath, RequestingModule, in DoFrameworkLookup()
641 if (!HS.findUsableModuleForHeader(&File->getFileEntry(), getDir(), in DoFrameworkLookup()
841 HeaderFileInfo &ToHFI = getFileInfo(&FE->getFileEntry()); in LookupFile()
858 &FE->getFileEntry()); in LookupFile()
946 HeaderFileInfo &HFI = getFileInfo(&File->getFileEntry()); in LookupFile()
976 if (checkMSVCHeaderSearch(Diags, MSFE ? &MSFE->getFileEntry() : nullptr, in LookupFile()
977 &File->getFileEntry(), IncludeLoc)) { in LookupFile()
987 &File->getFileEntry(), isAngled, FoundByHeaderMap); in LookupFile()
[all …]
DPreprocessorLexer.cpp50 const FileEntry *PreprocessorLexer::getFileEntry() const { in getFileEntry() function in PreprocessorLexer
DPPDirectives.cpp769 if ((FileEnt = ISEntry.ThePPLexer->getFileEntry())) in LookupFile()
790 if (&FE->getFileEntry() == FromFile) { in LookupFile()
808 Filename, &FE->getFileEntry()); in LookupFile()
817 if ((CurFileEnt = CurPPLexer->getFileEntry())) { in LookupFile()
824 Filename, &FE->getFileEntry()); in LookupFile()
832 if ((CurFileEnt = ISEntry.ThePPLexer->getFileEntry())) { in LookupFile()
839 FilenameLoc, Filename, &FE->getFileEntry()); in LookupFile()
1935 if (File && isPCHThroughHeader(&File->getFileEntry())) in HandleHeaderIncludeOrImport()
1953 HeaderInfo.getFileInfo(&File->getFileEntry()).NumIncludes) in HandleHeaderIncludeOrImport()
2029 FileCharacter = std::max(HeaderInfo.getFileDirFlavor(&File->getFileEntry()), in HandleHeaderIncludeOrImport()
[all …]
DPragma.cpp412 HeaderInfo.MarkFileIncludeOnce(getCurrentFileLexer()->getFileEntry()); in HandlePragmaOnce()
473 HeaderInfo.MarkFileSystemHeader(TheLexer->getFileEntry()); in HandlePragmaSystemHeader()
531 const FileEntry *CurFile = getCurrentFileLexer()->getFileEntry(); in HandlePragmaDependency()
DPPLexerChange.cpp333 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
DPPMacroExpansion.cpp1235 PP.getHeaderSearchInfo().getFileDirFlavor(&File->getFileEntry()); in EvaluateHasIncludeCommon()
1272 LookupFromFile = PP.getCurrentLexer()->getFileEntry(); in EvaluateHasIncludeNext()
/external/clang/lib/Lex/
DPreprocessorLexer.cpp56 const FileEntry *PreprocessorLexer::getFileEntry() const { in getFileEntry() function in PreprocessorLexer
DPragma.cpp364 HeaderInfo.MarkFileIncludeOnce(getCurrentFileLexer()->getFileEntry()); in HandlePragmaOnce()
430 HeaderInfo.MarkFileSystemHeader(TheLexer->getFileEntry()); in HandlePragmaSystemHeader()
487 const FileEntry *CurFile = getCurrentFileLexer()->getFileEntry(); in HandlePragmaDependency()
DPPDirectives.cpp791 if ((FileEnt = ISEntry.ThePPLexer->getFileEntry())) in LookupFile()
838 if ((CurFileEnt = CurPPLexer->getFileEntry())) { in LookupFile()
855 if ((CurFileEnt = ISEntry.ThePPLexer->getFileEntry())) { in LookupFile()
2053 LookupFromFile = CurPPLexer->getFileEntry(); in HandleIncludeNextDirective()
DPPLexerChange.cpp304 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
/external/clang/include/clang/Lex/
DPreprocessorLexer.h166 const FileEntry *getFileEntry() const;
/external/llvm-project/clang/include/clang/Lex/
DPreprocessorLexer.h159 const FileEntry *getFileEntry() const;
/external/llvm-project/clang/lib/Basic/
DFileManager.cpp199 return &Result->getFileEntry(); in getFile()
343 return &getVirtualFileRef(Filename, Size, ModificationTime).getFileEntry(); in getVirtualFile()
437 const FileEntry &VFE = VF.getFileEntry(); in getBypassFile()
DSourceLocation.cpp213 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() function in FullSourceLoc
DSourceManager.cpp542 SrcMgr::ContentCache &IR = getOrCreateContentCache(&SourceFile.getFileEntry(), in createFileID()
703 assert(isFileOverridden(&File.getFileEntry())); in bypassFileContentsOverride()
710 (void)getOrCreateContentCache(&BypassFile->getFileEntry()); in bypassFileContentsOverride()
/external/llvm-project/clang/unittests/Frontend/
DASTUnitTest.cpp150 &File->getFileEntry())); in TEST_F()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSarifDiagnostics.cpp264 *P.asLocation().getExpansionLoc().getFileEntry(), in createThreadFlow()
295 *Diag.getLocation().asLocation().getExpansionLoc().getFileEntry(), in createResult()
/external/llvm-project/clang-tools-extra/clangd/index/
DIndexAction.cpp110 auto URI = toURI(&SkippedFile.getFileEntry()); in FileSkipped()
/external/llvm-project/clang-tools-extra/pp-trace/
DPPCallbacksTracker.cpp120 appendArgument("ParentFile", &SkippedFile.getFileEntry()); in FileSkipped()
/external/llvm-project/clang-tools-extra/clangd/
DParsedAST.cpp214 const FileEntry *FE = File ? &File->getFileEntry() : nullptr; in replay()
/external/llvm-project/clang/lib/Frontend/
DCompilerInstance.cpp866 if (File.getFileEntry().isNamedPipe()) { in InitializeSourceManager()
868 FileMgr.getBufferForFile(&File.getFileEntry(), /*isVolatile=*/true); in InitializeSourceManager()

12