[PATCH] D132640: [clang-tidy] Fix modernize-use-emplace to support alias cases

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 27 23:06:08 PDT 2022


njames93 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp:138
+                        on(hasType(hasCanonicalType(hasDeclaration(
+                            namedDecl(hasAnyName(ContainersWithPushBack)))))));
 
----------------
Sorry about that, not sure what happened.
Anyway same goes for below, use a cxxRecordDecl matcher instead of namedDecl.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132640/new/

https://reviews.llvm.org/D132640



More information about the cfe-commits mailing list