Skip to content

Commit f948e54

Browse files
Remove commented out code
1 parent f3b912d commit f948e54

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Diff for: c/cert/src/rules/EXP16-C/DoNotCompareFunctionPointersToConstantValues.ql

-16
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,3 @@ where
8383
function = funcExpr.getFunction() and
8484
funcName = funcExpr.getFuncName()
8585
select comparison, comparison.getExplanation(), function, funcName
86-
//from
87-
// EqualityOperation equality, FunctionExpr funcExpr, Element function, string funcName,
88-
// Expr constantExpr
89-
//where
90-
// not isExcluded(equality, Expressions2Package::doNotCompareFunctionPointersToConstantValuesQuery()) and
91-
// funcExpr = equality.getAnOperand() and
92-
// constantExpr = equality.getAnOperand() and
93-
// exists(constantExpr.getValue()) and
94-
// function = funcExpr.getFunction() and
95-
// funcName = funcExpr.getFuncName() and
96-
// constantExpr.getFullyConverted().getUnderlyingType() =
97-
// funcExpr.getFullyConverted().getUnderlyingType()
98-
//select equality,
99-
// "Pointer to function $@ compared to constant value." +
100-
// constantExpr.getFullyConverted().getUnderlyingType().explain() + " / " +
101-
// funcExpr.getFullyConverted().getUnderlyingType().explain(), function, funcName

0 commit comments

Comments
 (0)