[PATCH] D102576: [clang-tidy] cppcoreguidelines-avoid-do-while: a new check
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 16 06:38:15 PDT 2021
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:114
+
+ Checks if a do-while loop exists and flags it.
+
----------------
Please highlight do-while with double back-ticks.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-avoid-do-while.rst:6
+
+Checks if a do-while loop exists and flags it.
+
----------------
Please highlight do-while with double back-ticks.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-avoid-do-while.rst:8
+
+Using a while loop instead of a do-while could improve readability and prevents overlooking the condition at the end.
+
----------------
Please highlight do-while and while with double back-ticks.
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