File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
cpp/autosar/src/rules/M0-1-3 Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff 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.
2828predicate 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
You can’t perform that action at this time.
0 commit comments