clang-tools 22.0.0git
|
Finds using namespace directives. More...
#include <UsingNamespaceDirectiveCheck.h>
Public Member Functions | |
UsingNamespaceDirectiveCheck (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 using namespace directives.
https://google.github.io/styleguide/cppguide.html#Namespaces
The check implements the following rule of the Google C++ Style Guide:
You may not use a using-directive to make all names from a namespace available.
Corresponding cpplint.py check name: build/namespaces.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/build-using-namespace.html
Definition at line 34 of file UsingNamespaceDirectiveCheck.h.
|
inline |
Definition at line 36 of file UsingNamespaceDirectiveCheck.h.
|
override |
Definition at line 22 of file UsingNamespaceDirectiveCheck.cpp.
|
inlineoverride |
Definition at line 38 of file UsingNamespaceDirectiveCheck.h.
|
override |
Definition at line 17 of file UsingNamespaceDirectiveCheck.cpp.