|
clang-tools 23.0.0git
|
Imposes limitations on the use of const_cast within C++ code. More...
#include <ProTypeConstCastCheck.h>
Public Member Functions | |
| ProTypeConstCastCheck (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 |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
Imposes limitations on the use of const_cast within C++ code.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-type-const-cast.html
Definition at line 20 of file ProTypeConstCastCheck.h.
| clang::tidy::cppcoreguidelines::ProTypeConstCastCheck::ProTypeConstCastCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 32 of file ProTypeConstCastCheck.cpp.
|
override |
Definition at line 45 of file ProTypeConstCastCheck.cpp.
References clang::tidy::cppcoreguidelines::hasConstQualifier(), and clang::tidy::cppcoreguidelines::hasVolatileQualifier().
|
inlineoverride |
Definition at line 29 of file ProTypeConstCastCheck.h.
|
inlineoverride |
Definition at line 23 of file ProTypeConstCastCheck.h.
|
override |
Definition at line 41 of file ProTypeConstCastCheck.cpp.
|
override |
Definition at line 37 of file ProTypeConstCastCheck.cpp.