Skip to content

Commit 6457dc6

Browse files
add base ql files
1 parent d7215f5 commit 6457dc6

12 files changed

+100
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @id cpp/misra/critical-unspecified-behavior
3+
* @name RULE-4-1-3: There shall be no occurrence of critical unspecified behaviour
4+
* @description Critical unspecified behaviour impacts the observable behaviour of the abstract
5+
* machine and means a program is not guaranteed to behave predictably.
6+
* @kind problem
7+
* @precision high
8+
* @problem.severity error
9+
* @tags external/misra/id/rule-4-1-3
10+
* correctness
11+
* scope/system
12+
* external/misra/enforcement/undecidable
13+
* external/misra/obligation/required
14+
*/
15+
16+
import cpp
17+
import codingstandards.cpp.misra
18+
19+
from
20+
where
21+
not isExcluded(x, UndefinedPackage::criticalUnspecifiedBehaviorQuery()) and
22+
select
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @id cpp/misra/critical-unspecified-behavior-audit
3+
* @name RULE-4-1-3: Audit: there shall be no occurrence of critical unspecified behaviour
4+
* @description Critical unspecified behaviour impacts the observable behaviour of the abstract
5+
* machine and means a program is not guaranteed to behave predictably.
6+
* @kind problem
7+
* @precision low
8+
* @problem.severity error
9+
* @tags external/misra/id/rule-4-1-3
10+
* correctness
11+
* scope/system
12+
* external/misra/audit
13+
* external/misra/enforcement/undecidable
14+
* external/misra/obligation/required
15+
*/
16+
17+
import cpp
18+
import codingstandards.cpp.misra
19+
20+
from
21+
where
22+
not isExcluded(x, UndefinedPackage::criticalUnspecifiedBehaviorAuditQuery()) and
23+
select
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @id cpp/misra/undefined-behavior
3+
* @name RULE-4-1-3: There shall be no occurrence of undefined behaviour
4+
* @description It is not possible to reason about the behaviour of any program that contains
5+
* instances of undefined behaviour, which can cause unpredictable results that are
6+
* particularly difficult to detect during testing.
7+
* @kind problem
8+
* @precision high
9+
* @problem.severity error
10+
* @tags external/misra/id/rule-4-1-3
11+
* correctness
12+
* scope/system
13+
* external/misra/enforcement/undecidable
14+
* external/misra/obligation/required
15+
*/
16+
17+
import cpp
18+
import codingstandards.cpp.misra
19+
20+
from
21+
where
22+
not isExcluded(x, UndefinedPackage::undefinedBehaviorQuery()) and
23+
select
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @id cpp/misra/undefined-behavior-audit
3+
* @name RULE-4-1-3: Audit: there shall be no occurrence of undefined behaviour
4+
* @description It is not possible to reason about the behaviour of any program that contains
5+
* instances of undefined behaviour, which can cause unpredictable results that are
6+
* particularly difficult to detect during testing.
7+
* @kind problem
8+
* @precision low
9+
* @problem.severity error
10+
* @tags external/misra/id/rule-4-1-3
11+
* correctness
12+
* scope/system
13+
* external/misra/audit
14+
* external/misra/enforcement/undecidable
15+
* external/misra/obligation/required
16+
*/
17+
18+
import cpp
19+
import codingstandards.cpp.misra
20+
21+
from
22+
where
23+
not isExcluded(x, UndefinedPackage::undefinedBehaviorAuditQuery()) and
24+
select
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
No expected results have yet been specified
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rules/RULE-4-1-3/CriticalUnspecifiedBehavior.ql
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
No expected results have yet been specified
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rules/RULE-4-1-3/CriticalUnspecifiedBehaviorAudit.ql
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
No expected results have yet been specified
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rules/RULE-4-1-3/UndefinedBehavior.ql

0 commit comments

Comments
 (0)