[clang-tools-extra] [clang-tidy] comment braced-init list arguments (PR #180408)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 8 12:26:58 PST 2026
================
@@ -1,4 +1,13 @@
-// RUN: %check_clang_tidy %s bugprone-argument-comment %t -- \
+// RUN: %check_clang_tidy -std=c++11 %s bugprone-argument-comment %t -- \
+// RUN: -config="{CheckOptions: { \
+// RUN: bugprone-argument-comment.CommentBoolLiterals: true, \
+// RUN: bugprone-argument-comment.CommentIntegerLiterals: true, \
+// RUN: bugprone-argument-comment.CommentFloatLiterals: true, \
+// RUN: bugprone-argument-comment.CommentUserDefinedLiterals: true, \
+// RUN: bugprone-argument-comment.CommentStringLiterals: true, \
+// RUN: bugprone-argument-comment.CommentNullPtrs: true, \
+// RUN: bugprone-argument-comment.CommentCharacterLiterals: true}}" --
+// RUN: %check_clang_tidy -check-suffixes=,CXX20 -std=c++20 %s bugprone-argument-comment %t -- \
----------------
localspook wrote:
```suggestion
// RUN: %check_clang_tidy -check-suffixes=,CXX20 -std=c++20-or-later %s bugprone-argument-comment %t -- \
```
https://github.com/llvm/llvm-project/pull/180408
More information about the cfe-commits
mailing list