Skip to content

Commit 4bb4222

Browse files
author
Nicolas Kraiouchkine
committed
Fix comments in NonBooleanIterationStmt.qll
1 parent c101419 commit 4bb4222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/common/src/codingstandards/cpp/rules/nonbooleaniterationstmt/NonBooleanIterationStmt.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Provides a library which includes a `problems` predicate for reporting....
2+
* Provides a library which includes a `problems` predicate for reporting non-boolean iteration conditions.
33
*/
44

55
import cpp
@@ -16,7 +16,7 @@ query predicate problems(Loop loopStmt, string message) {
1616
condition = loopStmt.getCondition() and
1717
explicitConversionType = condition.getExplicitlyConverted().getType().getUnspecifiedType() and
1818
not explicitConversionType instanceof BoolType and
19-
//exclude any generated conditions
19+
// exclude any generated conditions
2020
not condition.isCompilerGenerated() and
2121
// exclude any conditions in uninstantiated templates, because their type will be unknown.
2222
not condition.isFromUninstantiatedTemplate(_) and

0 commit comments

Comments
 (0)