[clang-tools-extra] [clang-tidy] comment braced and parenthesized init arguments (PR #180408)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 11 02:43:32 PDT 2026
================
@@ -0,0 +1,59 @@
+// 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=TEMP -std=c++20-or-later %s bugprone-argument-comment %t -- \
+// RUN: -config="{CheckOptions: { \
+// RUN: bugprone-argument-comment.CommentParenthesizedTemporaries: true}}" --
+// RUN: %check_clang_tidy -check-suffix=BOTH -std=c++20-or-later %s bugprone-argument-comment %t -- \
----------------
vbvictor wrote:
Can we use BOTH-INIT, since we have a total of 3 options listed above (Anon, typed and paren)
https://github.com/llvm/llvm-project/pull/180408
More information about the cfe-commits
mailing list