|
clang-tools 22.0.0git
|
Modification of the std or posix namespace can result in undefined behavior. More...
#include <StdNamespaceModificationCheck.h>
Public Member Functions | |
| StdNamespaceModificationCheck (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 |
Modification of the std or posix namespace can result in undefined behavior.
This check warns for such modifications.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/std-namespace-modification.html
Definition at line 21 of file StdNamespaceModificationCheck.h.
|
inline |
Definition at line 23 of file StdNamespaceModificationCheck.h.
|
override |
Definition at line 111 of file StdNamespaceModificationCheck.cpp.
References getTopLevelLexicalNamespaceDecl().
|
inlineoverride |
Definition at line 25 of file StdNamespaceModificationCheck.h.
|
override |
Definition at line 41 of file StdNamespaceModificationCheck.cpp.