26#include <clang/AST/RecursiveASTVisitor.h>
27#include <clang/Basic/SourceManager.h>
28#include <clang/Lex/PPCallbacks.h>
55 :
public clang::RecursiveASTVisitor<translation_unit_visitor> {
77#if LLVM_VERSION_MAJOR >= 16
79 const clang::Token &IncludeTok, clang::StringRef FileName,
80 bool IsAngled, clang::CharSourceRange FilenameRange,
81 clang::OptionalFileEntryRef File, clang::StringRef SearchPath,
82 clang::StringRef RelativePath,
const clang::Module *Imported,
83 clang::SrcMgr::CharacteristicKind FileType)
override;
84#elif LLVM_VERSION_MAJOR > 14
86 const clang::Token &include_tok, clang::StringRef file_name,
87 bool is_angled, clang::CharSourceRange filename_range,
88 clang::Optional<clang::FileEntryRef> file,
89 clang::StringRef search_path, clang::StringRef relative_path,
90 const clang::Module *imported,
91 clang::SrcMgr::CharacteristicKind file_type)
override;
94 const clang::Token &include_tok, clang::StringRef file_name,
95 bool is_angled, clang::CharSourceRange filename_range,
96 const clang::FileEntry *file, clang::StringRef search_path,
97 clang::StringRef relative_path,
const clang::Module *imported,
98 clang::SrcMgr::CharacteristicKind file_type)
override;
109 bool is_system,
eid_t current_file_id);
118 const std::filesystem::path &include_path,
eid_t current_file_id);
130 const std::filesystem::path &file);