Skip to content

Commit 69897c5

Browse files
dmcppcheckclaude
andcommitted
clang-tidy: make loop variable const
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9c08138 commit 69897c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎simplecpp.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ void simplecpp::TokenList::constFoldLogicalOp(Token *tok)
14321432
}
14331433

14341434
// && has higher precedence than ||
1435-
for (const char *op : {"&&", "||"}) {
1435+
for (const char * const op : {"&&", "||"}) {
14361436
for (Token *t = tok; t && t->op != ')'; t = t->next) {
14371437
if (t->str() != op)
14381438
continue;

0 commit comments

Comments
 (0)