You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,12 @@ This repository contains CodeQL queries and libraries which support various Codi
6
6
7
7
_Carnegie Mellon and CERT are registered trademarks of Carnegie Mellon University._
8
8
9
-
This repository contains CodeQL queries and libraries which support various Coding Standards for the [C++14](https://www.iso.org/standard/64029.html)programming language.
9
+
This repository contains CodeQL queries and libraries which support various Coding Standards for the [C++14](https://www.iso.org/standard/64029.html), [C99](https://www.iso.org/standard/29237.html) and [C11](https://www.iso.org/standard/57853.html)programming languages.
10
10
11
11
The following coding standards are supported:
12
12
-[AUTOSAR - Guidelines for the use of C++14 language in critical and safety-related systems (Releases R22-11, R20-11, R19-11 and R19-03)](https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf).
13
13
-[MISRA C++:2008](https://www.misra.org.uk) (support limited to the rules specified in AUTOSAR).
14
14
-[SEI CERT C++ Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)](https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=494932)
15
-
16
-
In addition, the following Coding Standards for the C programming language are under development:
17
-
18
15
-[SEI CERT C Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf)
19
16
-[MISRA C 2012](https://www.misra.org.uk/product/misra-c2012-third-edition-first-revision/).
Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-20-8/ControllingExpressionIfDirective.ql
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -14,40 +14,35 @@
14
14
15
15
import cpp
16
16
import codingstandards.c.misra
17
+
import codingstandards.cpp.PreprocessorDirective
17
18
18
19
/* A controlling expression is evaluated if it is not excluded (guarded by another controlling expression that is not taken). This translates to it either being taken or not taken. */
- Fixes #370 - Non-member user-defined assignment operator and stream insertion/extraction parameters that are required to be out parameters are excluded.
3
+
- Broadens the definition of out parameter by considering assignment and crement operators as modifications to an out parameter candidate.
- Broadened definition of `IStream` and `OStream` types may result in reduced false negatives.
6
+
-`A5-1-1` - `LiteralValueUsedOutsideTypeInit.ql`:
7
+
- Broadened definition of `IStream` types may result in reduced false positives because more file stream function calls may be detected as logging operations that will be excluded from the results.
- Fix issue #7 - improve query logic to only match on exact standard library names (e.g., now excludes sys/header.h type headers from the results as those are not C standard libraries).
- Fix FP reported in #424. Exclude functions calling `std::string::reserve` or `std::string::append` that may throw even if their signatures don't specify it.
0 commit comments