Skip to content

Commit 65e525d

Browse files
Merge branch 'michaelrfairhurst/package-undefined-behavior' into michaelrfairhurst/rule-4-1-3-detect-data-races
2 parents d336752 + b2a6480 commit 65e525d

20 files changed

+108
-0
lines changed

.github/workflows/code-scanning-pack-gen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- main
1111
- next
1212
- "rc/**"
13+
- michaelrfairhurst/package-undefined-behavior
1314
push:
1415
branches:
1516
- main

.github/workflows/codeql_unit_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- main
1616
- next
1717
- "rc/**"
18+
- michaelrfairhurst/package-undefined-behavior
1819

1920
jobs:
2021

.github/workflows/extra-rule-validation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- main
1616
- "rc/**"
1717
- next
18+
- michaelrfairhurst/package-undefined-behavior
1819

1920

2021
jobs:

.github/workflows/tooling-unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- main
1616
- "rc/**"
1717
- next
18+
- michaelrfairhurst/package-undefined-behavior
1819

1920
jobs:
2021
prepare-supported-codeql-env-matrix:

.github/workflows/validate-package-files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- next
1111
- "rc/**"
12+
- michaelrfairhurst/package-undefined-behavior
1213

1314
jobs:
1415
validate-package-files:

.github/workflows/validate-query-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- next
1111
- "rc/**"
12+
- michaelrfairhurst/package-undefined-behavior
1213

1314
env:
1415
XARGS_MAX_PROCS: 4

.github/workflows/validate-query-help.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- next
1111
- "rc/**"
12+
- michaelrfairhurst/package-undefined-behavior
1213

1314
jobs:
1415
validate-query-help-files:

.github/workflows/validate-query-test-case-formatting.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- next
1111
- "rc/**"
12+
- michaelrfairhurst/package-undefined-behavior
1213

1314
env:
1415
XARGS_MAX_PROCS: 4
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

0 commit comments

Comments
 (0)