[clang-tools-extra] [clang-tidy] Fix bug in modernize-use-emplace (PR #66169)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 00:28:01 PDT 2023


================
@@ -247,6 +247,10 @@ Changes in existing checks
   <clang-tidy/checks/modernize/loop-convert>` to support for-loops with
   iterators initialized by free functions like ``begin``, ``end``, or ``size``.
 
+- Improved :doc:`modernize-use-emplace
+  <clang-tidy/checks/modernize/use-emplace>` to not replace aggregates that
+  ``emplace_back`` cannot construct with aggregate initialization.
----------------
PiotrZSL wrote:

use just ``emplace``, as this looks to be generic code

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


More information about the cfe-commits mailing list