clang-tools 22.0.0git
|
Warns when using 'static' functions or variables at global scope, and suggests moving them to an anonymous namespace. More...
#include <UseAnonymousNamespaceCheck.h>
Public Member Functions | |
UseAnonymousNamespaceCheck (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 |
Warns when using 'static' functions or variables at global scope, and suggests moving them to an anonymous namespace.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/use-anonymous-namespace.html
Definition at line 22 of file UseAnonymousNamespaceCheck.h.
clang::tidy::misc::UseAnonymousNamespaceCheck::UseAnonymousNamespaceCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 32 of file UseAnonymousNamespaceCheck.cpp.
|
override |
Definition at line 53 of file UseAnonymousNamespaceCheck.cpp.
|
inlineoverride |
Definition at line 25 of file UseAnonymousNamespaceCheck.h.
|
override |
Definition at line 37 of file UseAnonymousNamespaceCheck.cpp.