[PATCH] D124918: [clang-tidy] Add a new check for non-trivial unused variables.

Luca Versari via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 4 08:09:48 PDT 2022


veluca93 marked an inline comment as done.
veluca93 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/performance/UnusedNoSideEffectCheck.cpp:135
+    // or class, and that there are no side effects on `this`.
+    if (auto *Callee = dyn_cast<MemberExpr>(Call->getCallee())) {
+      markSideEffectFree(Callee);
----------------
Eugene.Zelenko wrote:
> `const auto *`. Same in other similar places.
Somehow I missed a couple of those... should be fixed now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124918



More information about the cfe-commits mailing list