clang-tools 22.0.0git
|
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to the pointee. More...
#include <MisplacedConstCheck.h>
Public Member Functions | |
MisplacedConstCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to the pointee.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/misplaced-const.html
Definition at line 21 of file MisplacedConstCheck.h.
|
inline |
Definition at line 23 of file MisplacedConstCheck.h.
|
override |
Definition at line 48 of file MisplacedConstCheck.cpp.
References clang::tidy::misc::guessAlternateQualification().
|
override |
Definition at line 17 of file MisplacedConstCheck.cpp.