[clang-tools-extra] [clang-tidy][C++20] Add support for aggregate types within modernize-use-emplace (PR #131969)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 19 20:56:59 PDT 2025
================
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s modernize-use-emplace %t -- \
+// RUN: %check_clang_tidy %s -std=c++17 modernize-use-emplace %t -- \
----------------
RiverDave wrote:
On second thought would this be sufficient for the cases shown above?:
I've noticed that `use-ranges.cpp` uses a custom suffix bound to a standard
```cpp
// RUN: %check_clang_tidy -std=c++23 %s modernize-use-ranges %t -check-suffixes=,CPP23 -- -I %S/Inputs/
// CHECK-FIXES-CPP23: #include <numeric>
```
I could implement cases with designated initializer in a separate c++20 file.
https://github.com/llvm/llvm-project/pull/131969
More information about the cfe-commits
mailing list