[PATCH] D149015: [clang-tidy] Added bugprone-inc-dec-in-conditions check
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 28 00:10:46 PDT 2023
PiotrZSL added inline comments.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/bugprone/inc-dec-in-conditions.rst:62
+means that if ``i`` were initially ``5``, the first operand ``i < 5`` would
+evaluate to ``false`` and the second operand ``i > 2`` would not be evaluated.
+As a result, the decrement operation ``--i`` would not be executed and ``i``
----------------
xgupta wrote:
> If it is false then the second statement will be evaluated, right?
Yes my bad, I will correct this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149015/new/
https://reviews.llvm.org/D149015
More information about the cfe-commits
mailing list