From 8f0df9f3bbc6d7f3d5cbfd955c5ee4404c53a75d Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Sat, 17 Dec 2022 13:57:30 -0800 Subject: [clang] Convert OptionalFileEntryRefDegradesToFileEntryPtr to std::optional --- clang/lib/Frontend/ModuleDependencyCollector.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp') diff --git a/clang/lib/Frontend/ModuleDependencyCollector.cpp b/clang/lib/Frontend/ModuleDependencyCollector.cpp index 7e19ed3..785bff7 100644 --- a/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ b/clang/lib/Frontend/ModuleDependencyCollector.cpp @@ -19,6 +19,7 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" #include "llvm/Support/raw_ostream.h" +#include using namespace clang; @@ -48,8 +49,9 @@ struct ModuleDependencyPPCallbacks : public PPCallbacks { void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, bool IsAngled, CharSourceRange FilenameRange, - Optional File, StringRef SearchPath, - StringRef RelativePath, const Module *Imported, + std::optional File, + StringRef SearchPath, StringRef RelativePath, + const Module *Imported, SrcMgr::CharacteristicKind FileType) override { if (!File) return; -- cgit v1.1