clang-tools 22.0.0git
|
Non-const global variables hide dependencies and make the dependencies subject to unpredictable changes. More...
#include <AvoidNonConstGlobalVariablesCheck.h>
Public Member Functions | |
AvoidNonConstGlobalVariablesCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Non-const global variables hide dependencies and make the dependencies subject to unpredictable changes.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.html
Definition at line 21 of file AvoidNonConstGlobalVariablesCheck.h.
clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck::AvoidNonConstGlobalVariablesCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 17 of file AvoidNonConstGlobalVariablesCheck.cpp.
|
override |
Definition at line 53 of file AvoidNonConstGlobalVariablesCheck.cpp.
|
override |
Definition at line 22 of file AvoidNonConstGlobalVariablesCheck.cpp.
|
override |
Definition at line 74 of file AvoidNonConstGlobalVariablesCheck.cpp.