Skip to content

Commit 0e9fc04

Browse files
Remove outdated comment.
1 parent d5dacfd commit 0e9fc04

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cpp/autosar/src/rules/M0-1-3/UnusedLocalVariable.ql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,8 @@ import codingstandards.cpp.deadcode.UnusedVariables
2626
//
2727
// For performance reasons, these special values should be collected in a single pass.
2828
predicate excludedConstantValue(string value) {
29-
// For constexpr variables used as template arguments, we don't see accesses (just the
30-
// appropriate literals). We therefore take a conservative approach and count the number of
31-
// template instantiations that use the given constant, and consider each one to be a use
32-
// of the variable
3329
value = any(ClassTemplateInstantiation cti).getTemplateArgument(_).(Expr).getValue()
3430
or
35-
// For static asserts too, check if there is a child which has the same value
36-
// as the constexpr variable.
3731
value = any(StaticAssert sa).getCondition().getAChild*().getValue()
3832
}
3933

0 commit comments

Comments
 (0)