-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #660 from rak3-sh/fix-m0-1-3-658
M0-1-3: Consider local variable usages in array size and template function arguments
- Loading branch information
Showing
4 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `M0-1-3` - `UnusedLocalVariable.ql`: | ||
- Fixes #658. Considers usage of const/constexpr variables in array size and function parameters that are used in arguments of template functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
| test.cpp:7:7:7:7 | y | Local variable 'y' in 'test_simple' is not used. | | ||
| test.cpp:14:13:14:13 | y | Local variable 'y' in 'test_const' is not used. | | ||
| test.cpp:17:7:17:7 | z | Local variable 'z' in 'test_const' is not used. | | ||
| test.cpp:23:5:23:5 | t | Local variable 't' in 'f1' is not used. | | ||
| test.cpp:23:5:23:5 | t | Local variable 't' in 'f1' is not used. | | ||
| test.cpp:44:6:44:6 | a | Local variable 'a' in 'test_side_effect_init' is not used. | | ||
| test.cpp:91:5:91:5 | t | Local variable 't' in 'template_function' is not used. | | ||
| test.cpp:15:7:15:7 | z | Local variable 'z' in 'test_const' is not used. | | ||
| test.cpp:21:5:21:5 | t | Local variable 't' in 'f1' is not used. | | ||
| test.cpp:21:5:21:5 | t | Local variable 't' in 'f1' is not used. | | ||
| test.cpp:42:6:42:6 | a | Local variable 'a' in 'test_side_effect_init' is not used. | | ||
| test.cpp:89:5:89:5 | t | Local variable 't' in 'template_function' is not used. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters