[PATCH] D106173: [clang-tidy] performance-unnecessary-copy-initialization: Create option to exclude container types from triggering the check.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 16 13:29:45 PDT 2021


ymandel accepted this revision.
ymandel added a comment.
This revision is now accepted and ready to land.

Looks good. I was only a little confused by the first sentence of the option description.



================
Comment at: clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-copy-initialization.rst:53
+
+   A semicolon-separated list of names of types whose methods are not allowed to
+   return the const reference the variable is copied from. When an expensive to
----------------
should this "not" be here?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106173



More information about the cfe-commits mailing list