[PATCH] D137205: [clang-tidy] Add performance-unnecessary-copy-on-last-use check

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 25 05:12:14 PST 2022


kadircet added inline comments.


================
Comment at: clang-tools-extra/clangd/TidyProvider.cpp:215
                        "-bugprone-use-after-move",
+                       // Using an CFG and might crash on invalid code:
+                       "-performance-unnecessary-copy-on-last-use",
----------------
comment seems half-finished here. is there any other reason than trying to analyze `CFG` for invalid code?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137205



More information about the cfe-commits mailing list