Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0e9fc04

Browse files
Remove outdated comment.
1 parentd5dacfd commit0e9fc04

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
predicateexcludedConstantValue(stringvalue){
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(ClassTemplateInstantiationcti).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(StaticAssertsa).getCondition().getAChild*().getValue()
3832
}
3933

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp