clang-tools 22.0.0git
|
Finds anonymous namespaces in headers. More...
#include <UnnamedNamespaceInHeaderCheck.h>
Public Member Functions | |
UnnamedNamespaceInHeaderCheck (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/google/build-namespaces.html
Definition at line 25 of file UnnamedNamespaceInHeaderCheck.h.
clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::UnnamedNamespaceInHeaderCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 17 of file UnnamedNamespaceInHeaderCheck.cpp.
|
override |
Definition at line 28 of file UnnamedNamespaceInHeaderCheck.cpp.
References clang::tidy::utils::isPresumedLocInHeaderFile().
|
inlineoverride |
Definition at line 28 of file UnnamedNamespaceInHeaderCheck.h.
|
override |
Definition at line 22 of file UnnamedNamespaceInHeaderCheck.cpp.