[clang-tools-extra] added option `google-readability-namespace-comments.AllowNoNamespaceComments` (PR #124265)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 25 07:21:34 PST 2025
================
@@ -184,6 +189,11 @@ void NamespaceCommentCheck::check(const MatchFinder::MatchResult &Result) {
ND->isAnonymousNamespace() ? "anonymous namespace"
: ("namespace '" + *NamespaceNameAsWritten + "'");
+ // If no namespace comment is allowed
+ if(!hasComment && AllowNoNamespaceComments) {
----------------
EugeneZelenko wrote:
```suggestion
if (!hasComment && AllowNoNamespaceComments) {
```
https://github.com/llvm/llvm-project/pull/124265
More information about the cfe-commits
mailing list