[Feature] Enable clang-tidy (#200)

Co-authored-by: star9029 <hengxings783@gmail.com>
This commit is contained in:
Myriad-Dreamin
2025-10-31 20:50:07 +08:00
committed by GitHub
parent 7d71c0f689
commit 9806e45fa3
15 changed files with 580 additions and 28 deletions

View File

@@ -15,6 +15,12 @@ bool is_templated(const clang::Decl* decl);
/// Check whether the decl is anonymous.
bool is_anonymous(const clang::NamedDecl* decl);
/// Checks whether the location is inside the main file.
bool is_inside_main_file(clang::SourceLocation loc, const clang::SourceManager& sm);
/// Checks whether the decl is an implicit template instantiation.
bool is_implicit_template_instantiation(const clang::NamedDecl* decl);
/// Return the decl where it is instantiated from. If could be a template decl
/// or a member of a class template. If the decl is a full specialization, return
/// itself.