Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DFileEntry.h70 const FileEntry &getFileEntry() const { in getFileEntry() function
85 return &LHS.getFileEntry() == &RHS.getFileEntry();
88 return LHS == &RHS.getFileEntry();
91 return &LHS.getFileEntry() == RHS;
106 return llvm::hash_value(&Ref.getFileEntry()); in hash_value()
154 operator const FileEntry *() const { return &getFileEntry(); }
329 return has_value() ? &(*this)->getFileEntry() : nullptr;
339 return LHS == (RHS ? &RHS->getFileEntry() : nullptr);
342 return (LHS ? &LHS->getFileEntry() : nullptr) == RHS;
406 off_t FileEntryRef::getSize() const { return getFileEntry().getSize(); }
[all …]
H A DSourceLocation.h415 const FileEntry *getFileEntry() const;
H A DSourceManager.h979 overrideFileContents(&SourceFile.getFileEntry(), std::move(Buffer)); in overrideFileContents()
1618 return translateFile(&SourceFile.getFileEntry()); in translateFile()
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DHeaderSearch.cpp441 &File->getFileEntry(), Dir ? Dir : File->getFileEntry().getDir(), in getFileAndSuggestModule()
689 StringRef FrameworkPath = File->getFileEntry().getDir()->getName(); in DoFrameworkLookup()
713 &File->getFileEntry(), FrameworkPath, RequestingModule, in DoFrameworkLookup()
717 if (!HS.findUsableModuleForHeader(&File->getFileEntry(), getDir(), in DoFrameworkLookup()
949 HeaderFileInfo &ToHFI = getFileInfo(&FE->getFileEntry()); in LookupFile()
966 &FE->getFileEntry()); in LookupFile()
1070 const auto FE = &File->getFileEntry(); in LookupFile()
1110 if (checkMSVCHeaderSearch(Diags, MSFE ? &MSFE->getFileEntry() : nullptr, in LookupFile()
1111 &File->getFileEntry(), IncludeLoc)) { in LookupFile()
1121 &File->getFileEntry(), isAngled, FoundByHeaderMap); in LookupFile()
[all …]
H A DPreprocessorLexer.cpp51 PreprocessorLexer::getFileEntry() const { in getFileEntry() function in PreprocessorLexer
H A DPPDirectives.cpp984 if ((FileEnt = ISEntry.ThePPLexer->getFileEntry())) in LookupFile()
1005 if (&FE->getFileEntry() == FromFile) { in LookupFile()
1032 if ((CurFileEnt = CurPPLexer->getFileEntry())) { in LookupFile()
1047 if ((CurFileEnt = ISEntry.ThePPLexer->getFileEntry())) { in LookupFile()
1917 LookupFromFile = CurPPLexer->getFileEntry(); in getIncludeNextStart()
2175 if (File && isPCHThroughHeader(&File->getFileEntry())) in HandleHeaderIncludeOrImport()
2303 FileCharacter = std::max(HeaderInfo.getFileDirFlavor(&File->getFileEntry()), in HandleHeaderIncludeOrImport()
2320 !HeaderInfo.ShouldEnterIncludeFile(*this, &File->getFileEntry(), in HandleHeaderIncludeOrImport()
2345 SourceMgr.isMainFile(File->getFileEntry())) { in HandleHeaderIncludeOrImport()
2377 !IsMapped && !File->getFileEntry().tryGetRealPathName().empty(); in HandleHeaderIncludeOrImport()
[all …]
H A DPragma.cpp418 HeaderInfo.MarkFileIncludeOnce(getCurrentFileLexer()->getFileEntry()); in HandlePragmaOnce()
483 HeaderInfo.MarkFileSystemHeader(TheLexer->getFileEntry()); in HandlePragmaSystemHeader()
540 const FileEntry *CurFile = getCurrentFileLexer()->getFileEntry(); in HandlePragmaDependency()
H A DPPLexerChange.cpp360 if (const FileEntry *FE = CurPPLexer->getFileEntry()) { in HandleEndOfFile()
H A DPPMacroExpansion.cpp1260 PP.getHeaderSearchInfo().getFileDirFlavor(&File->getFileEntry()); in EvaluateHasIncludeCommon()
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DFileManager.cpp201 return &Result->getFileEntry(); in getFile()
384 FileEntry &FE = const_cast<FileEntry &>(STDIN->getFileEntry()); in getSTDIN()
392 return &getVirtualFileRef(Filename, Size, ModificationTime).getFileEntry(); in getVirtualFile()
496 BFE->Dir = VF.getFileEntry().Dir; in getBypassFile()
H A DSourceLocation.cpp225 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() function in FullSourceLoc
H A DSarif.cpp217 const FileEntry *FE = Start.getExpansionLoc().getFileEntry(); in createPhysicalLocation()
H A DSourceManager.cpp717 assert(isFileOverridden(&File.getFileEntry())); in bypassFileContentsOverride()
/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DPreprocessorLexer.h160 OptionalFileEntryRefDegradesToFileEntryPtr getFileEntry() const;
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DSARIFDiagnostic.cpp73 if (const FileEntry *FE = Loc.getFileEntry()) { in addLocationToResult()
H A DFrontendAction.cpp841 FileName = FE->getFileEntry().getName(); in BeginSourceFile()
H A DTextDiagnostic.cpp801 if (const FileEntry *FE = Loc.getFileEntry()) { in emitDiagnosticLoc()
/openbsd-src/gnu/llvm/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()
H A DCIndex.cpp8539 return const_cast<FileEntry *>(File ? &File->getFileEntry() : nullptr); in clang_getIncludedFile()
8749 return const_cast<FileEntry *>(&File->getFileEntry()); in clang_Module_getASTFile()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaCodeComplete.cpp10078 const FileEntry *CurFile = PP.getCurrentFileLexer()->getFileEntry(); in CodeCompleteIncludedFile()