Skip to content

Commit ecb3a4a

Browse files
committed
Add new MISRA C++ query suites
Provide clearer naming for the MISRA C++ query suites, to avoid confusion with the MISRA C query suites.
1 parent eb6e77c commit ecb3a4a

File tree

6 files changed

+32
-24
lines changed

6 files changed

+32
-24
lines changed

change_notes/2024-10-03-misra-c-query-suites.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
- The `misra-c-default.qls` suite has been specified as the default for the pack, and will include our most up-to-date coverage for MISRA C.
44
- A new query suite `misra-c-2012-third-edition-with-amendment-2.qls` has been created to represent our previous MISRA C coverage. Note: this query suite will run the rules that were present in MISRA C 2012, Third Edition, First Revision and Amendment 2. The interpretation of those
55
rules may be updated to reflect changes in more recent MISRA standards.
6-
- A pair of new query suites, `misra-c-required.qls` and `misra-c-advisory.qls`, have been added to enable running only the required or advisory queries.
6+
- A pair of new query suites, `misra-c-required.qls` and `misra-c-advisory.qls`, have been added to enable running only the required or advisory queries.
7+
- The following query suites have been added or modified for MISRA C++:
8+
- A new query suite has been created `misra-cpp-default.qls` to avoid confusion with the MISRA C query suites. The `misra-default.qls` suite has been deprecated, and will be removed in a future releases, and is replaced by the `misra-cpp-default.qls` suite.
9+
- The `misra-cpp-default.qls` suite has been specified as the default for the pack, and will include our most up-to-date coverage for MISRA C.
10+
- A new query suite has been created `misra-cpp-single-translation-unit.qls` to avoid confusion with the MISRA C query suites. The `misra-single-translation-unit.qls` suite has been deprecated, and will be removed in a future releases, and is replaced by the `misra-cpp-single-translation-unit.qls` suite.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- description: MISRA C++ 2023 (Default)
2+
- qlpack: codeql/misra-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
- exclude:
8+
tags contain:
9+
- external/misra/audit
10+
- external/misra/default-disabled
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: MISRA C++ 2023 (Single Translation Unit)
2+
- qlpack: codeql/misra-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- scope/single-translation-unit
9+
- exclude:
10+
tags contain:
11+
- external/misra/audit
12+
- external/misra/default-disabled
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
- description: MISRA C++ 2023 (Default)
2-
- qlpack: codeql/misra-cpp-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
- exclude:
8-
tags contain:
9-
- external/misra/audit
10-
- external/misra/default-disabled
1+
- description: "DEPRECATED - MISRA C++ 2023 - use misra-cpp-default.qls instead"
2+
- import: codeql-suites/misra-cpp-default.qls
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
- description: MISRA C++ 2023 (Single Translation Unit)
2-
- qlpack: codeql/misra-cpp-coding-standards
3-
- include:
4-
kind:
5-
- problem
6-
- path-problem
7-
tags contain:
8-
- scope/single-translation-unit
9-
- exclude:
10-
tags contain:
11-
- external/misra/audit
12-
- external/misra/default-disabled
1+
- description: "DEPRECATED - MISRA C++ 2023 (Single Translation Unit) - use misra-cpp-single-translation-unit.qls instead"
2+
- import: codeql-suites/misra-cpp-single-translation-unit.qls

cpp/misra/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: codeql/misra-cpp-coding-standards
22
version: 2.36.0-dev
33
description: MISRA C++ 2023
4-
suites: codeql-suites
4+
default-suite: codeql-suites/misra-cpp-default.qls
55
license: MIT
66
dependencies:
77
codeql/common-cpp-coding-standards: '*'

0 commit comments

Comments
 (0)