[clang-tools-extra] [clang-tidy] comment braced-init list arguments (PR #180408)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 15 14:46:58 PDT 2026
================
@@ -0,0 +1,48 @@
+// RUN: %check_clang_tidy -check-suffix=OFF -std=c++20-or-later %s bugprone-argument-comment %t
+// RUN: %check_clang_tidy -check-suffix=ANON -std=c++20-or-later %s bugprone-argument-comment %t -- \
+// RUN: -config="{CheckOptions: { \
+// RUN: bugprone-argument-comment.CommentAnonymousInitLists: true}}" --
+// RUN: %check_clang_tidy -check-suffix=TYPED -std=c++20-or-later %s bugprone-argument-comment %t -- \
+// RUN: -config="{CheckOptions: { \
+// RUN: bugprone-argument-comment.CommentTypedInitLists: true}}" --
+// RUN: %check_clang_tidy -check-suffix=BOTH -std=c++20-or-later %s bugprone-argument-comment %t -- \
+// RUN: -config="{CheckOptions: { \
+// RUN: bugprone-argument-comment.CommentAnonymousInitLists: true, \
+// RUN: bugprone-argument-comment.CommentTypedInitLists: true}}" --
+
+namespace GH171842 {
----------------
vbvictor wrote:
nit: no need to write these namespaces, I think all info could be found by git blame
https://github.com/llvm/llvm-project/pull/180408
More information about the cfe-commits
mailing list