|
clang-tools 22.0.0git
|
This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast. More...
#include <ProTypeCstyleCastCheck.h>
Public Member Functions | |
| ProTypeCstyleCastCheck (StringRef Name, ClangTidyContext *Context) | |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-type-cstyle-cast.html
Definition at line 21 of file ProTypeCstyleCastCheck.h.
|
inline |
Definition at line 23 of file ProTypeCstyleCastCheck.h.
|
override |
Definition at line 35 of file ProTypeCstyleCastCheck.cpp.
References clang::tidy::cppcoreguidelines::needsConstCast().
|
inlineoverride |
Definition at line 25 of file ProTypeCstyleCastCheck.h.
|
override |
Definition at line 30 of file ProTypeCstyleCastCheck.cpp.