Skip to content

Commit f5a437b

Browse files
authored
Merge pull request #702 from github/lcartey/fix-compilation-failure
Remove duplicate predicate
2 parents 24a264e + 3490238 commit f5a437b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cpp/autosar/src/rules/M0-1-4/SingleUsePODVariable.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import cpp
44
import codingstandards.cpp.TrivialType
55
import codingstandards.cpp.deadcode.UnusedVariables
66

7-
/** Gets the constant value of a constexpr variable. */
8-
private string getConstExprValue(Variable v) {
9-
result = v.getInitializer().getExpr().getValue() and
10-
v.isConstexpr()
11-
}
12-
137
/**
148
* Gets the number of uses of variable `v` in an opaque assignment, where an opaque assignment is a cast from one type to the other, and `v` is assumed to be a member of the resulting type.
159
* e.g.,

0 commit comments

Comments
 (0)