Skip to content

Commit e7a35a2

Browse files
Merge branch 'michaelrfairhurst/package-undefined-behavior' into michaelrfairhurst/rule-4-1-3-detect-data-races
2 parents 3a6af4e + 46d7355 commit e7a35a2

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

cpp/misra/src/rules/RULE-4-1-3/CriticalUnspecifiedBehavior.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import cpp
1717
import codingstandards.cpp.misra
1818

19-
from
19+
from Element e
2020
where
21-
not isExcluded(x, UndefinedPackage::criticalUnspecifiedBehaviorQuery()) and
22-
select
21+
not isExcluded(e, UndefinedPackage::criticalUnspecifiedBehaviorQuery()) and
22+
none()
23+
select e, "no implementation"

cpp/misra/src/rules/RULE-4-1-3/CriticalUnspecifiedBehaviorAudit.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
import cpp
1818
import codingstandards.cpp.misra
1919

20-
from
20+
from Element e
2121
where
22-
not isExcluded(x, UndefinedPackage::criticalUnspecifiedBehaviorAuditQuery()) and
23-
select
22+
not isExcluded(e, UndefinedPackage::criticalUnspecifiedBehaviorAuditQuery()) and
23+
none()
24+
select e, "no implementation"

cpp/misra/src/rules/RULE-4-1-3/UndefinedBehavior.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
import cpp
1818
import codingstandards.cpp.misra
1919

20-
from
20+
from Element e
2121
where
22-
not isExcluded(x, UndefinedPackage::undefinedBehaviorQuery()) and
23-
select
22+
not isExcluded(e, UndefinedPackage::undefinedBehaviorQuery()) and
23+
none()
24+
select e, "no implementation"

cpp/misra/src/rules/RULE-4-1-3/UndefinedBehaviorAudit.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
import cpp
1919
import codingstandards.cpp.misra
2020

21-
from
21+
from Element e
2222
where
23-
not isExcluded(x, UndefinedPackage::undefinedBehaviorAuditQuery()) and
24-
select
23+
not isExcluded(e, UndefinedPackage::undefinedBehaviorAuditQuery()) and
24+
none()
25+
select e, "no implementation"

0 commit comments

Comments
 (0)