[PATCH] D49918: [clang-tidy] Sequence declaration in while statement before the condition
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 28 10:03:27 PDT 2018
aaron.ballman added inline comments.
================
Comment at: clang-tidy/utils/ExprSequence.cpp:147
return TheIfStmt->getCond();
+ } else if (const auto *TheWhileStmt = dyn_cast<WhileStmt>(Parent)) {
+ // While statement: If a variable is declared inside the condition, the
----------------
Should we also handle switch statements at the same time?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49918
More information about the cfe-commits
mailing list