File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
common/src/codingstandards/cpp/deadcode Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ import cpp
18
18
import codingstandards.cpp.autosar
19
19
import codingstandards.cpp.deadcode.UnusedVariables
20
20
21
- /** Gets the constant value of a constexpr/const variable. */
22
- private string getConstExprValue ( Variable v ) {
23
- result = v .getInitializer ( ) .getExpr ( ) .getValue ( ) and
24
- ( v .isConst ( ) or v .isConstexpr ( ) )
25
- }
26
-
27
21
// This predicate is similar to getUseCount for M0-1-4 except that it also
28
22
// considers static_asserts. This was created to cater for M0-1-3 specifically
29
23
// and hence, doesn't attempt to reuse the M0-1-4 specific predicate
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ predicate maybeACompileTimeTemplateArgument(Variable v) {
152
152
}
153
153
154
154
/** Gets the constant value of a constexpr/const variable. */
155
- private string getConstExprValue ( Variable v ) {
155
+ string getConstExprValue ( Variable v ) {
156
156
result = v .getInitializer ( ) .getExpr ( ) .getValue ( ) and
157
157
( v .isConst ( ) or v .isConstexpr ( ) )
158
158
}
You can’t perform that action at this time.
0 commit comments