[PATCH] D49918: [clang-tidy] Sequence init statements, declarations, and conditions correctly in if, switch, and while

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 3 08:52:42 PDT 2018


alexfh accepted this revision.
alexfh added a comment.

Still LG



================
Comment at: test/clang-tidy/bugprone-use-after-move.cpp:1141
+    A a1;
+    if (A a2= std::move(a1)) {
+      std::move(a2);
----------------
nit: clang-format this, please.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D49918





More information about the cfe-commits mailing list