[PATCH] D108808: [clang-tidy] bugprone-infinite-loop: Fix false positives with volatile addresses.
Whisperity via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 27 01:26:28 PDT 2021
whisperity added a comment.
What happens for something like the following? Maybe it's also worth a test case?
bool wait_analogue_pin(volatile int* address, int threshold) {
while (*address < threshold) {}
return true;
}
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108808/new/
https://reviews.llvm.org/D108808
More information about the cfe-commits
mailing list