[clang-tools-extra] added option `google-readability-namespace-comments.AllowNoNamespaceComments` (PR #124265)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 24 10:50:26 PST 2025


================
@@ -39,3 +39,10 @@ Options
 
    An unsigned integer specifying the number of spaces before the comment
    closing a namespace definition. Default is `1U`.
+
+
+.. option:: AllowNoNamespaceComments
+
+   When true, the check will allow that no namespace comment is present.
+   If a namespace comment is added but it is not matching, the check will fail. Default is `false`.
----------------
vbvictor wrote:

Nit: I am not a native speaker but I suggest there could be an easier to understand wording:
```suggestion
   If a namespace comment is present but does not match namespace definition, the check will fail. Default is `false`.
```

https://github.com/llvm/llvm-project/pull/124265


More information about the cfe-commits mailing list