|
clang-tools 22.0.0git
|
Finds anonymous namespaces in headers. More...
#include <AnonymousNamespaceInHeaderCheck.h>
Public Member Functions | |
| AnonymousNamespaceInHeaderCheck (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 |
Finds anonymous namespaces in headers.
https://google.github.io/styleguide/cppguide.html#Namespaces
Corresponding cpplint.py check name: 'build/namespaces'.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/anonymous-namespace-in-header.html
Definition at line 24 of file AnonymousNamespaceInHeaderCheck.h.
| clang::tidy::misc::AnonymousNamespaceInHeaderCheck::AnonymousNamespaceInHeaderCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 18 of file AnonymousNamespaceInHeaderCheck.cpp.
|
override |
Definition at line 29 of file AnonymousNamespaceInHeaderCheck.cpp.
References clang::tidy::utils::isPresumedLocInHeaderFile().
|
inlineoverride |
Definition at line 27 of file AnonymousNamespaceInHeaderCheck.h.
|
override |
Definition at line 23 of file AnonymousNamespaceInHeaderCheck.cpp.