clang-tools 22.0.0git
|
Checks that long namespaces have a closing comment. More...
#include <NamespaceCommentCheck.h>
Public Member Functions | |
NamespaceCommentCheck (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 |
Checks that long namespaces have a closing comment.
https://llvm.org/docs/CodingStandards.html#namespace-indentation
https://google.github.io/styleguide/cppguide.html#Namespaces
Definition at line 22 of file NamespaceCommentCheck.h.
clang::tidy::readability::NamespaceCommentCheck::NamespaceCommentCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 22 of file NamespaceCommentCheck.cpp.
|
override |
Definition at line 88 of file NamespaceCommentCheck.cpp.
References Fix(), clang::tidy::readability::getNamespaceNameAsWritten(), and clang::tidy::readability::locationsInSameFile().
|
inlineoverride |
Definition at line 25 of file NamespaceCommentCheck.h.
|
override |
Definition at line 41 of file NamespaceCommentCheck.cpp.