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

Felix Berger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 22 10:06:18 PDT 2021


flx marked an inline comment as done.
flx added a comment.

I also added a file testing the new option.



================
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
----------------
ymandel wrote:
> should this "not" be here?
Yeah, that makes it more clear. Done.


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