[PATCH] D91037: [clang-tidy][bugprone-use-after-mnove] Warn on std::move for consts

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 8 16:03:27 PST 2020


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/bugprone/RedundantBranchConditionCheck.cpp:87
+  if (!BinOpCond)
+    if (auto *ExprWithCleanupsCond =
+            dyn_cast_or_null<ExprWithCleanups>(InnerIf->getCond()))
----------------
Please fix warning.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91037



More information about the cfe-commits mailing list