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

Update MISRA queries and tests after merging location tables#915

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jketema wants to merge1 commit intogithub:next
base:next
Choose a base branch
Loading
fromjketema:loc-table-merge
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,5 +3,4 @@
| test.c:17:6:17:7 | E1 | struct E1 has an unused tag. |
| test.c:31:10:31:11 | S7 | struct S7 has an unused tag. |
| test.c:50:8:50:10 | S10 | struct S10 has an unused tag. |
| test.c:66:3:66:14 | S13 | struct S13 has an unused tag. |
| test.c:79:8:79:10 | s14 | struct s14 has an unused tag. |
6 changes: 3 additions & 3 deletionsc/misra/test/rules/RULE-2-4/test.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,9 +63,9 @@ struct S12 { // COMPLIANT
};

void testMacroNameUsed() {
STRUCT_MACRO // COMPLIANT[FALSE_POSITIVE] - although the struct generated by
//the macro isnever used in this expansion, it may be used in
//otherexpansions, so we don't want to report it as unused
STRUCT_MACRO // COMPLIANT - although the struct generated by the macro is
// never used in this expansion, it may be used in other
// expansions, so we don't want to report it as unused
}

void testMacroNameNotUsed() {
Expand Down
3 changes: 2 additions & 1 deletioncpp/common/src/codingstandards/cpp/Loops.qll
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -339,7 +339,8 @@ predicate isInvalidLoop(ForStmt forLoop, string reason, Locatable reasonLocation
isForLoopWithMulipleCounters(forLoop) and
reason = "it uses multiple loop counters$@" and
reasonLabel = "" and
reasonLocation.getLocation() instanceof UnknownExprLocation
reasonLocation instanceof File and
reasonLocation.getLocation() instanceof UnknownLocation
or
isForLoopWithFloatingPointCounters(forLoop, reasonLocation) and
reason = "it uses a loop counter '$@' of type floating-point" and
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp