clang-tools 22.0.0git
|
The check for Objective-C global variables and constants naming convention. More...
#include <GlobalVariableDeclarationCheck.h>
Public Member Functions | |
GlobalVariableDeclarationCheck (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 |
The check for Objective-C global variables and constants naming convention.
The declaration should follow the patterns of 'k[A-Z].*' (constants) or 'g[A-Z].*' (variables).
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/objc-global-variable-declaration.html
Definition at line 22 of file GlobalVariableDeclarationCheck.h.
|
inline |
Definition at line 24 of file GlobalVariableDeclarationCheck.h.
|
override |
Definition at line 77 of file GlobalVariableDeclarationCheck.cpp.
|
inlineoverride |
Definition at line 26 of file GlobalVariableDeclarationCheck.h.
|
override |
Definition at line 57 of file GlobalVariableDeclarationCheck.cpp.