Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f948e54

Browse filesBrowse files
Remove commented out code
1 parent f3b912d commit f948e54
Copy full SHA for f948e54

File tree

1 file changed

+0
-16
lines changed
Filter options

1 file changed

+0
-16
lines changed

‎c/cert/src/rules/EXP16-C/DoNotCompareFunctionPointersToConstantValues.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/EXP16-C/DoNotCompareFunctionPointersToConstantValues.ql
-16Lines changed: 0 additions & 16 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.