[clang-tools-extra] [clang-tidy] Add modernize-default-arg-braced-init check (PR #203474)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 12 01:09:06 PDT 2026


================
@@ -263,6 +257,14 @@ New checks
 
   Finds cyclical initialization of static variables.
 
+- New :doc:`modernize-default-arg-braced-init
+  <clang-tidy/checks/modernize/default-arg-braced-init>` check.
+
+  Replaces redundant constructor calls in default arguments with braced
----------------
zeyi2 wrote:

Please sync with the first paragraph of the documentation.

```
Replaces redundant non-explicit default constructor calls in default arguments with a braced
initializer list. This avoids unnecessarily repeating the type name in the
function declaration.
```

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


More information about the cfe-commits mailing list