[clang-tools-extra] [clang-tidy] `modernize-use-trailing-return-type`: add an option to apply to `void`-returning functions as well (PR #129406)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 9 05:44:16 PDT 2025


================
@@ -1,4 +1,12 @@
-// RUN: %check_clang_tidy -std=c++14-or-later %s modernize-use-trailing-return-type %t -- -- -fdeclspec -fexceptions -DCOMMAND_LINE_INT=int
+// RUN: %check_clang_tidy                                                            \
+// RUN:   -std=c++14-or-later %s modernize-use-trailing-return-type %t --            \
+// RUN:   -- -fdeclspec -fexceptions -DCOMMAND_LINE_INT=int
+// RUN: %check_clang_tidy -check-suffixes=,EVEN-WHEN-VOID                            \
----------------
vbvictor wrote:

Please, use new suffix, not `EVEN-WHEN-VOID`

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


More information about the cfe-commits mailing list