Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f0a93b

Browse filesBrowse files
authored
Merge branch 'main' into jsinglet/bump-workflows
2 parents 7fbe006 + cc527b1 commit 7f0a93b
Copy full SHA for 7f0a93b

File tree

85 files changed

+352
-91
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

85 files changed

+352
-91
lines changed

‎.vscode/tasks.json

Copy file name to clipboardExpand all lines: .vscode/tasks.json
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,11 @@
185185
"type": "pickString",
186186
"options": [
187187
"Allocations",
188-
"Banned",
189188
"BannedFunctions",
189+
"BannedLibraries",
190190
"BannedSyntax",
191191
"BannedTypes",
192192
"Classes",
193-
"Classes",
194-
"Classes",
195193
"Comments",
196194
"Contracts1",
197195
"Concurrency",

‎c/cert/src/rules/ENV33-C/DoNotCallSystem.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/ENV33-C/DoNotCallSystem.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @problem.severity error
88
* @tags external/cert/id/env33-c
99
* security
10-
* external/cert/obligtion/rule
10+
* external/cert/obligation/rule
1111
*/
1212

1313
import cpp

‎c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.md

Copy file name to clipboardExpand all lines: c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.md
+1-1Lines changed: 1 addition & 1 deletion

‎c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @id c/cert/call-posix-open-with-correct-argument-count
3-
* @name EXP37-C: Pass the correct number of arguments to the POSIX open function.
3+
* @name EXP37-C: Pass the correct number of arguments to the POSIX open function
44
* @description A third argument should be passed to the POSIX function open() when and only when
55
* creating a new file.
66
* @kind problem

‎c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.md

Copy file name to clipboardExpand all lines: c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.md
+1-1Lines changed: 1 addition & 1 deletion

‎c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @id c/cert/do-not-call-functions-with-incompatible-arguments
3-
* @name EXP37-C: Do not pass arguments with an incompatible count or type to a function.
3+
* @name EXP37-C: Do not pass arguments with an incompatible count or type to a function
44
* @description The arguments passed to a function must be compatible with the function's
55
* parameters.
66
* @kind problem

‎c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @id c/cert/do-not-alternately-io-from-a-stream-without-positioning
33
* @name FIO39-C: Do not alternately input and output from a stream without an intervening flush or positioning call
4-
* @description
4+
* @description Do not alternately input and output from a stream without an intervening flush or
5+
* positioning call. This may result in undefined behavior.
56
* @kind problem
67
* @precision very-high
78
* @problem.severity error

‎c/cert/src/rules/FIO42-C/CloseFilesWhenTheyAreNoLongerNeeded.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO42-C/CloseFilesWhenTheyAreNoLongerNeeded.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* @id c/cert/close-files-when-they-are-no-longer-needed
33
* @name FIO42-C: Close files when they are no longer needed
4-
* @description
4+
* @description Open files must be closed before the lifetime of the last pointer to the file-object
5+
* has ended to prevent resource exhaustion and data loss issues.
56
* @kind problem
67
* @precision very-high
78
* @problem.severity error

‎c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @id c/cert/undefined-behavior-accessing-a-closed-file
33
* @name FIO46-C: Do not access a closed file
4-
* @description Do not access a closed file
4+
* @description Do not access a closed file.
55
* @kind problem
66
* @precision high
77
* @problem.severity error

‎c/misra/src/rules/RULE-13-3/SideEffectAndCrementInFullExpression.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-13-3/SideEffectAndCrementInFullExpression.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @name RULE-13-3: A full expression containing an increment (++) or decrement (--) operator should have no other
44
* @description A full expression containing an increment (++) or decrement (--) operator should
55
* have no other potential side effects other than that caused by the increment or
6-
* decrement operator
6+
* decrement operator.
77
* @kind problem
88
* @precision very-high
99
* @problem.severity warning

‎c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @id c/misra/file-used-after-closed
33
* @name RULE-22-6: The value of a pointer to a FILE shall not be used after the associated stream has been closed
4-
* @description A closed FILE is accessed
4+
* @description A closed FILE is accessed.
55
* @kind problem
66
* @precision very-high
77
* @problem.severity error

‎c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @id c/misra/eof-shall-be-compared-with-unmodified-return-values
33
* @name RULE-22-7: The macro EOF shall only be compared with the unmodified return value from any Standard Library
44
* @description The macro EOF shall only be compared with the unmodified return value from any
5-
* Standard Library function capable of returning EOF
5+
* Standard Library function capable of returning EOF.
66
* @kind problem
77
* @precision high
88
* @problem.severity error

‎c/misra/src/rules/RULE-4-12/StdLibDynamicMemoryAllocationUsed.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-4-12/StdLibDynamicMemoryAllocationUsed.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @name RULE-4-12: Dynamic memory allocation shall not be used
44
* @description Using dynamic memory allocation and deallocation can result to undefined behavior.
55
* This query is for the Standard Library Implementation. Any implementation outside it
6-
* will require a separate query under the same directive
6+
* will require a separate query under the same directive.
77
* @kind problem
88
* @precision very-high
99
* @problem.severity error

‎c/misra/src/rules/RULE-4-8/ObjectWithNoPointerDereferenceShouldBeOpaque.ql

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-4-8/ObjectWithNoPointerDereferenceShouldBeOpaque.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* @tags external/misra/id/rule-4-8
1111
* readability
1212
* maintainability
13-
* readability
1413
* external/misra/obligation/advisory
1514
*/
1615

+3Lines changed: 3 additions & 0 deletions
+2Lines changed: 2 additions & 0 deletions
+2Lines changed: 2 additions & 0 deletions

‎cpp/autosar/src/codeql-suites/autosar-advisory.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-advisory.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Advisory)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Advisory)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-audit.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-audit.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Audit)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Audit)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-default.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-default.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Default)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Default)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-required.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-required.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Required)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Required)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Single Translation Unit)
2+
- qlpack: autosar-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/autosar/audit
12+
- external/autosar/default-disabled

‎cpp/autosar/src/rules/A0-4-2/TypeLongDoubleUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A0-4-2/TypeLongDoubleUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/a0-4-2
1010
* correctness
1111
* readability
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A11-3-1/FriendDeclarationsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A11-3-1/FriendDeclarationsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a11-3-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A17-0-1/ReservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A17-0-1/ReservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @tags external/autosar/id/a17-0-1
1515
* correctness
1616
* maintainability
17+
* scope/single-translation-unit
1718
* external/autosar/allocated-target/implementation
1819
* external/autosar/enforcement/automated
1920
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-1/CLibraryFacilitiesNotAccessedThroughCPPLibraryHeaders.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-1/CLibraryFacilitiesNotAccessedThroughCPPLibraryHeaders.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/a18-0-1
1010
* correctness
1111
* readability
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-3/LocaleFunctionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleFunctionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @problem.severity warning
1515
* @tags external/autosar/id/a18-0-3
1616
* correctness
17+
* scope/single-translation-unit
1718
* external/autosar/allocated-target/implementation
1819
* external/autosar/enforcement/automated
1920
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-3/LocaleMacrosUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleMacrosUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @problem.severity warning
1010
* @tags external/autosar/id/a18-0-3
1111
* correctness
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-3/LocaleTypeLConvUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleTypeLConvUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity warning
99
* @tags external/autosar/id/a18-0-3
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-1-1/CStyleArraysUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-1/CStyleArraysUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a18-1-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @problem.severity warning
1010
* @tags external/autosar/id/a18-1-2
1111
* correctness
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity warning
88
* @tags external/autosar/id/a18-1-3
99
* maintainability
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-5-1/FunctionsMallocCallocReallocAndFreeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-5-1/FunctionsMallocCallocReallocAndFreeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a18-5-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-9-1/BindUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-9-1/BindUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a18-9-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A2-11-1/VolatileKeywordUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A2-11-1/VolatileKeywordUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a2-11-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/design
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated

‎cpp/autosar/src/rules/A2-13-3/TypeWcharTUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A2-13-3/TypeWcharTUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a2-13-3
99
* correctness
1010
* readability
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/architecture
1213
* external/autosar/allocated-target/design
1314
* external/autosar/allocated-target/implementation

‎cpp/autosar/src/rules/A26-5-1/PseudorandomNumbersGeneratedUsingRand.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A26-5-1/PseudorandomNumbersGeneratedUsingRand.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a26-5-1
99
* security
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A5-16-1/TernaryConditionalOperatorUsedAsSubExpression.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-16-1/TernaryConditionalOperatorUsedAsSubExpression.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a5-16-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A5-2-1/DynamicCastShouldNotBeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-1/DynamicCastShouldNotBeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a5-2-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/advisory

‎cpp/autosar/src/rules/A5-2-2/TraditionalCStyleCastsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-2/TraditionalCStyleCastsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a5-2-2
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A5-2-4/ReinterpretCastUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-4/ReinterpretCastUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a5-2-4
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a6-6-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A7-1-1/DeclarationUnmodifiedObjectMissingConstSpecifier.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-1-1/DeclarationUnmodifiedObjectMissingConstSpecifier.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ where
3535
cond = " points to an object"
3636
else cond = " is used for an object"
3737
) and
38-
not exists(LambdaExpression lc | lc.getACapture().getField() = v)
38+
not exists(LambdaExpression lc | lc.getACapture().getField() = v) and
39+
not v.isFromUninstantiatedTemplate(_)
3940
select v, "Non-constant variable " + v.getName() + cond + " and is not modified."

‎cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-1-4
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A7-1-6/TypedefSpecifierUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-1-6/TypedefSpecifierUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-1-6
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A7-4-1/AsmDeclarationUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-4-1/AsmDeclarationUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-4-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A8-4-1/FunctionsDefinedUsingTheEllipsisNotation.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A8-4-1/FunctionsDefinedUsingTheEllipsisNotation.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a8-4-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A9-5-1/UnionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A9-5-1/UnionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a9-5-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/m17-0-5
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-0-3
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.