Skip to content

Commit f85a1f1

Browse files
Copilot feedback
1 parent f653123 commit f85a1f1

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ The following coding standards are supported:
2424

2525
There are currently no new coding standards under active development.
2626

27-
This product intends to begin development of the following standards in the near future:
27+
This project intends to begin development of the following standards in the near future:
2828

29-
- [MISRA C 2025](https://misra.org.uk/product/misra-cpp2025/)
29+
- [MISRA C 2025](https://misra.org.uk/product/misra-c2025/)
3030

3131
If you are interested in this standard or when it will be available, consider contacting us via email or by filing an issue.
3232

docs/user_manual.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
| 0.25.0 | 2025-01-15 | Mike Fairhurst | Add guidance for the usage of 'strict' queries. |
3535
| 0.26.0 | 2025-02-12 | Luke Cartey | Describe support for new deviation code identifier formats |
3636
| 0.27.0 | 2025-05-15 | Luke Cartey | Documented completed support for MISRA C 2023. |
37-
| 0.27.0 | 2025-05-15 | Mike Fairhurst | Documented completed support for MISRA C++ 2023. |
37+
| 0.28.0 | 2026-04-30 | Mike Fairhurst | Documented completed support for MISRA C++ 2023. |
3838

3939
## Release information
4040

@@ -71,7 +71,7 @@ The _CodeQL Coding Standards_ product is a set of CodeQL queries for identifying
7171
| | [2012 Amendment 3](https://misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD3.pdf) | 24 | 24 | 24 | Implemented |
7272
| | [2012 Amendment 4](https://misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD4.pdf) | 22 | 22 | 21[^4] | Implemented |
7373
| | [2023 Third Edition, Second Revision](https://misra.org.uk/product/misra-c2023/) | 221 | 210 | 207[^5] | Implemented |
74-
| MISRA C++ | [2023](https://misra.org.uk/product/misra-cpp2023/) | 179 | 175[^6] | - | Implemented |
74+
| MISRA C++ | [2023](https://misra.org.uk/product/misra-cpp2023/) | 179 | 176[^6] | 175[^7] | Implemented |
7575

7676
Not all rules in these standards are amenable to static analysis by CodeQL - some rules require external or domain specific knowledge to validate, or refer to properties which are not present in our representation of the codebase under analysis. In addition, some rules are natively enforced by the supported compilers. As CodeQL requires that the program under analysis compiles, we are unable to implement queries for these rules, and doing so would be redundant.
7777

@@ -90,7 +90,8 @@ The datasheet _"CodeQL Coding Standards: supported rules"_, provided with each r
9090
[^3]: The unimplemented supportable MISRA C 2012 rules are `Rule 9.5`, `Rule 17.13`. `Rule 9.5` and `Rule 17.13` require additional support in the CodeQL CLI to ensure the required information is available in the CodeQL database to identify violations of these rules. Note: `Dir 4.14` is covered by the default CodeQL queries, which identify potential security vulnerabilities caused by not validating external input.
9191
[^4]: The unimplemented supportable MISRA C 2012 Amendment 4 rule is `Rule 9.6`. `Rule 9.6` requires additional support in the CodeQL CLI to ensure the required information is available in the CodeQL database to identify violations of this rule.
9292
[^5]: The unimplemented supportable MISRA C 2023 rules are `Rule 9.5`, `Rule 9.6`, `Rule 17.13`. `Rule 9.5`, `Rule 9.6` and `Rule 17.13` require additional support in the CodeQL CLI to ensure the required information is available in the CodeQL database to identify violations of these rules. Note: `Dir 4.14` is covered by the default CodeQL queries, which identify potential security vulnerabilities caused by not validating external input.
93-
[^6]: The rules `5.13.7`, `19.0.1` and `19.1.2` are not planned to be implemented by CodeQL as they are compiler checked in all supported compilers. Our implementation does not support `Dir 0.3.2`, and for customers who wish to validate function preconditions we recommend they consider using [this open source CodeQL project](https://github.com/advanced-security/codeql-contracts-smt-z3) that can find and validate preconditions with SMT constraint solving.
93+
[^6]: The rules `5.13.7`, `19.0.1` and `19.1.2` are not planned to be implemented by CodeQL as they are compiler checked in all supported compilers.
94+
[^7]: The rule `Dir 0.3.2` is not supported by our implementation. For customers who wish to validate function preconditions we recommend they consider using [this open source CodeQL project](https://github.com/advanced-security/codeql-contracts-smt-z3) that can find and validate preconditions with SMT constraint solving.
9495

9596
## Supported environment
9697

@@ -115,7 +116,7 @@ In addition, the machine which performs the analysis must be able to complete a
115116

116117
#### C++
117118

118-
For C++ the codebase under analysis must comply with C++14 and use one of the following supported compiler configurations:
119+
For C++ the codebase under analysis must comply with C++14 or C++17 and use one of the following supported compiler configurations:
119120

120121
| Compiler | Version | Standard library | Target architecture | Language standard flag | Other required flags |
121122
| -------- | ------- | ------------------- | --------------------- | ---------------------------- | ----------------------- |
@@ -127,7 +128,7 @@ Use of the queries outside these scenarios is possible, but not validated for fu
127128

128129
- Use of the queries against codebases written with more recent versions of C++ (as supported by CodeQL) are not validated in the following circumstances:
129130
- When new language features are used
130-
- When language features are used which have a differing interpretation from C++14.
131+
- When language features are used which have a differing interpretation from C++14 or C++17.
131132
- Use of the queries against codebases which use other compilers or other compiler versions supported by CodeQL is not tested or validated for functional safety.
132133

133134
#### C
@@ -467,7 +468,7 @@ Note - considation should be taken to ensure the use of custom attributes for de
467468
* Confirm that unknown attributes are ignored by the compiler.
468469
* For MISRA C, add a project deviation against "Rule 1.2: Language extensions should not be used", if attribute support is a language extension in your language version.
469470

470-
**Use of attributes in C++ Coding Standards**: The C++ Standard supports attributes in C++14, however the handling of unknown attributes is implementation defined. From C++17 onwards, unknown attributes are mandated to be ignored. Unknown attributes will usually raise an "unknown attribute" warning. You should:
471+
**Use of attributes in C++ Coding Standards**: The C++ Standard supports attributes in C++14 and C++17, however the handling of unknown attributes is implementation defined. From C++17 onwards, unknown attributes are mandated to be ignored. Unknown attributes will usually raise an "unknown attribute" warning. You should:
471472
* If using C++14, confirm that your compiler ignores unknown attributes.
472473
* If using AUTOSAR and a compiler which produces warnings on unknown attributes, the compiler warning should be disabled (as per `A1-1-2: A warning level of the compilation process shall be set in compliance with project policies`), to ensure compliance with `A1-4-3: All code should compiler free of compiler warnings`.
473474

0 commit comments

Comments
 (0)