================
@@ -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
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to