[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 13:49:53 PST 2025


================
@@ -39,3 +39,11 @@ 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 namespace comments are ommitted
+   entirely. The check only fails if a namespace comment is present but does
+   not match. Default is `false`.
----------------
vbvictor wrote:

Nit: I think it will make easier to understand what it tries to match. The same should be corrected in clang-tools-extra/docs/ReleaseNotes.rst if you wish to apply this fix.
```suggestion
   not match namespace definition. Default is `false`.
```

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


More information about the cfe-commits mailing list