[PATCH] D102576: [clang-tidy] cppcoreguidelines-avoid-do-while: a new check
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 16 11:24:42 PDT 2021
njames93 added a comment.
This is going to be very noisey for codebases that use a do...while macro:
#define MACRO() do { Something(); With(); Multiple(); Statements(); } while (false)
Maybe you should ignore do statements that are in macro expansions as well as potentially do statements with a false condition.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102576/new/
https://reviews.llvm.org/D102576
More information about the cfe-commits
mailing list