[clang-tools-extra] [clang-tidy] modernize-return-braced-init-list: skip types with an initializer_list constructor (PR #205440)

Grigory Pastukhov via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 6 14:46:10 PDT 2026


================
@@ -7,7 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "ReturnBracedInitListCheck.h"
+#include "../utils/TypeTraits.h"
----------------
grigorypas wrote:

>From what I can see, ../utils/ seems to be the standard way checks include shared helpers - e.g. ExplicitConstructorCheck.cpp, MakeSmartPtrCheck.cpp, and ForRangeCopyCheck.cpp all use #include "../utils/TypeTraits.h".

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


More information about the cfe-commits mailing list