-
Notifications
You must be signed in to change notification settings - Fork 67
A7-1-2: Exclude generated variables and variables in uninstantiated templates #608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
29d0538
A7-1-2: Exclude generated variables and variables in uninstantiated t…
lcartey 648f583
Address review comments
lcartey 0917493
Merge branch 'main' into lcartey/a7-1-2
lcartey 766504c
Add expected results file
lcartey d8986c9
Update function constexpr expected results
lcartey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
- `A7-1-2` - `VariableMissingConstexpr.ql`: | ||
- Fixes #607. Remove false positives for compiler generated variables and in uninstantiated templates |
This file contains hidden or 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 hidden or 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
46 changes: 23 additions & 23 deletions
46
cpp/autosar/test/rules/A7-1-2/VariableMissingConstexpr.expected
This file contains hidden or 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,23 +1,23 @@ | ||
| test.cpp:4:5:4:6 | g1 | Variable g1 could be marked 'constexpr'. | | ||
| test.cpp:6:5:6:6 | g2 | Variable g2 could be marked 'constexpr'. | | ||
| test.cpp:13:14:13:15 | lc | Variable lc could be marked 'constexpr'. | | ||
| test.cpp:15:14:15:16 | lca | Variable lca could be marked 'constexpr'. | | ||
| test.cpp:23:15:23:17 | lc2 | Variable lc2 could be marked 'constexpr'. | | ||
| test.cpp:25:15:25:18 | lc2a | Variable lc2a could be marked 'constexpr'. | | ||
| test.cpp:41:14:41:15 | l2 | Variable l2 could be marked 'constexpr'. | | ||
| test.cpp:44:16:44:17 | lc | Variable lc could be marked 'constexpr'. | | ||
| test.cpp:45:17:45:19 | lc2 | Variable lc2 could be marked 'constexpr'. | | ||
| test.cpp:55:7:55:8 | m2 | Variable m2 could be marked 'constexpr'. | | ||
| test.cpp:130:7:130:8 | m1 | Variable m1 could be marked 'constexpr'. | | ||
| test.cpp:141:7:141:8 | m1 | Variable m1 could be marked 'constexpr'. | | ||
| test.cpp:221:7:221:8 | l1 | Variable l1 could be marked 'constexpr'. | | ||
| test.cpp:235:7:235:8 | l6 | Variable l6 could be marked 'constexpr'. | | ||
| test.cpp:237:7:237:8 | l8 | Variable l8 could be marked 'constexpr'. | | ||
| test.cpp:240:7:240:9 | l10 | Variable l10 could be marked 'constexpr'. | | ||
| test.cpp:243:7:243:9 | l12 | Variable l12 could be marked 'constexpr'. | | ||
| test.cpp:248:7:248:9 | l15 | Variable l15 could be marked 'constexpr'. | | ||
| test.cpp:250:7:250:9 | l16 | Variable l16 could be marked 'constexpr'. | | ||
| test.cpp:251:7:251:9 | l17 | Variable l17 could be marked 'constexpr'. | | ||
| test.cpp:257:7:257:9 | l21 | Variable l21 could be marked 'constexpr'. | | ||
| test.cpp:262:7:262:9 | l24 | Variable l24 could be marked 'constexpr'. | | ||
| test.cpp:263:7:263:9 | l25 | Variable l25 could be marked 'constexpr'. | | ||
| test.cpp:4:5:4:6 | g1 | Variable 'g1' could be marked 'constexpr'. | | ||
| test.cpp:6:5:6:6 | g2 | Variable 'g2' could be marked 'constexpr'. | | ||
| test.cpp:13:14:13:15 | lc | Variable 'lc' could be marked 'constexpr'. | | ||
| test.cpp:15:14:15:16 | lca | Variable 'lca' could be marked 'constexpr'. | | ||
| test.cpp:23:15:23:17 | lc2 | Variable 'lc2' could be marked 'constexpr'. | | ||
| test.cpp:25:15:25:18 | lc2a | Variable 'lc2a' could be marked 'constexpr'. | | ||
| test.cpp:41:14:41:15 | l2 | Variable 'l2' could be marked 'constexpr'. | | ||
| test.cpp:44:16:44:17 | lc | Variable 'lc' could be marked 'constexpr'. | | ||
| test.cpp:45:17:45:19 | lc2 | Variable 'lc2' could be marked 'constexpr'. | | ||
| test.cpp:55:7:55:8 | m2 | Variable 'm2' could be marked 'constexpr'. | | ||
| test.cpp:130:7:130:8 | m1 | Variable 'm1' could be marked 'constexpr'. | | ||
| test.cpp:141:7:141:8 | m1 | Variable 'm1' could be marked 'constexpr'. | | ||
| test.cpp:221:7:221:8 | l1 | Variable 'l1' could be marked 'constexpr'. | | ||
| test.cpp:235:7:235:8 | l6 | Variable 'l6' could be marked 'constexpr'. | | ||
| test.cpp:237:7:237:8 | l8 | Variable 'l8' could be marked 'constexpr'. | | ||
| test.cpp:240:7:240:9 | l10 | Variable 'l10' could be marked 'constexpr'. | | ||
| test.cpp:243:7:243:9 | l12 | Variable 'l12' could be marked 'constexpr'. | | ||
| test.cpp:248:7:248:9 | l15 | Variable 'l15' could be marked 'constexpr'. | | ||
| test.cpp:250:7:250:9 | l16 | Variable 'l16' could be marked 'constexpr'. | | ||
| test.cpp:251:7:251:9 | l17 | Variable 'l17' could be marked 'constexpr'. | | ||
| test.cpp:257:7:257:9 | l21 | Variable 'l21' could be marked 'constexpr'. | | ||
| test.cpp:262:7:262:9 | l24 | Variable 'l24' could be marked 'constexpr'. | | ||
| test.cpp:263:7:263:9 | l25 | Variable 'l25' could be marked 'constexpr'. | |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.