Fix build with llvm-15 https://github.com/KDE/clazy/commit/20fca52da739ebefa47e35f6b338bb99a0da3cfe Index: src/PreProcessorVisitor.h --- src/PreProcessorVisitor.h.orig +++ src/PreProcessorVisitor.h @@ -71,7 +71,7 @@ class PreProcessorVisitor (protected) clang::SourceRange range, const clang::MacroArgs *) override; void InclusionDirective (clang::SourceLocation HashLoc, const clang::Token &IncludeTok, clang::StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange, - const clang::FileEntry *File, clang::StringRef SearchPath, clang::StringRef RelativePath, + clazy::OptionalFileEntryRef File, clang::StringRef SearchPath, clang::StringRef RelativePath, const clang::Module *Imported, clang::SrcMgr::CharacteristicKind FileType) override; private: std::string getTokenSpelling(const clang::MacroDefinition &) const;