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

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 5 06:30:17 PDT 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:: AllowOmittingNamespaceComments
+
+   When `true`, the check will accept if no namespace comment is present.
+   The check will only fail if the specified namespace comment is different
+   than expected. Defaults to `false`.
+
----------------
EugeneZelenko wrote:

```suggestion
   than expected. Default is `false`.
```

Just to be consistent in documentation.

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


More information about the cfe-commits mailing list