================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits