Skip to content

Commit c636b73

Browse files
committed
checkcondition.cpp: suppress accessMoved selfcheck false positive
1 parent 893aff5 commit c636b73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/checkcondition.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,7 @@ void CheckCondition::checkIncorrectLogicOperator()
13181318
const std::string text = cond1str + " " + tok->str() + " " + cond2str;
13191319
incorrectLogicOperatorError(tok, text, alwaysTrue, inconclusive, std::move(errorPath));
13201320
} else if (printStyle && (firstTrue || secondTrue)) {
1321+
// cppcheck-suppress accessMoved - TODO: FP - see #12174
13211322
const int which = isfloat ? sufficientCondition(std::move(op1), not1, d1, std::move(op2), not2, d2, isAnd) : sufficientCondition(std::move(op1), not1, i1, std::move(op2), not2, i2, isAnd);
13221323
std::string text;
13231324
if (which != 0) {

0 commit comments

Comments
 (0)