File indexing completed on 2026-05-10 08:36:18
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_CASTINGTHROUGHVOIDCHECK_H
0010 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_CASTINGTHROUGHVOIDCHECK_H
0011
0012 #include "../ClangTidyCheck.h"
0013
0014 namespace clang::tidy::bugprone {
0015
0016
0017
0018
0019 class CastingThroughVoidCheck : public ClangTidyCheck {
0020 public:
0021 CastingThroughVoidCheck(StringRef Name, ClangTidyContext *Context)
0022 : ClangTidyCheck(Name, Context) {}
0023 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
0024 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
0025 std::optional<TraversalKind> getCheckTraversalKind() const override {
0026 return TK_IgnoreUnlessSpelledInSource;
0027 }
0028 };
0029
0030 }
0031
0032 #endif