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 49ef22a

Browse filesBrowse files
committed
Format generated exclusion files
The format depends on the length of the package name so we format the generated file with the CLI instead of mirror the formating behavior in the template.
1 parent dbd4d77 commit 49ef22a
Copy full SHA for 49ef22a

Some content is hidden

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

76 files changed

+242
-76
lines changed

‎cpp/common/src/codingstandards/cpp/exclusions/c/Banned.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Banned.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ newtype BannedQuery =
2424
TOctalConstantsUsedQuery() or
2525
TRestrictTypeQualifierUsedQuery()
2626

27-
predicate isBannedQueryMetadata(Query query, string queryId, string ruleId, string category) {
27+
predicate isBannedQueryMetadata(
28+
Query query, string queryId, string ruleId, string category
29+
) {
2830
query =
2931
// `Query` instance for the `doNotCallSystem` query
3032
BannedPackage::doNotCallSystemQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ newtype Concurrency1Query =
88
TRaceConditionsWhenUsingLibraryFunctionsQuery() or
99
TDoNotCallSignalInMultithreadedProgramQuery()
1010

11-
predicate isConcurrency1QueryMetadata(Query query, string queryId, string ruleId, string category) {
11+
predicate isConcurrency1QueryMetadata(
12+
Query query, string queryId, string ruleId, string category
13+
) {
1214
query =
1315
// `Query` instance for the `preventDataRacesWithMultipleThreads` query
1416
Concurrency1Package::preventDataRacesWithMultipleThreadsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ newtype Concurrency2Query =
77
TDeadlockByLockingInPredefinedOrderQuery() or
88
TWrapFunctionsThatCanSpuriouslyWakeUpInLoopQuery()
99

10-
predicate isConcurrency2QueryMetadata(Query query, string queryId, string ruleId, string category) {
10+
predicate isConcurrency2QueryMetadata(
11+
Query query, string queryId, string ruleId, string category
12+
) {
1113
query =
1214
// `Query` instance for the `deadlockByLockingInPredefinedOrder` query
1315
Concurrency2Package::deadlockByLockingInPredefinedOrderQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency3.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Concurrency3.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype Concurrency3Query =
99
TPreserveSafetyWhenUsingConditionVariablesQuery() or
1010
TWrapFunctionsThatCanFailSpuriouslyInLoopQuery()
1111

12-
predicate isConcurrency3QueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isConcurrency3QueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `doNotAllowAMutexToGoOutOfScopeWhileLocked` query
1517
Concurrency3Package::doNotAllowAMutexToGoOutOfScopeWhileLockedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Contracts1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Contracts1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ newtype Contracts1Query =
77
TDoNotModifyTheReturnValueOfCertainFunctionsQuery() or
88
TEnvPointerIsInvalidAfterCertainOperationsQuery()
99

10-
predicate isContracts1QueryMetadata(Query query, string queryId, string ruleId, string category) {
10+
predicate isContracts1QueryMetadata(
11+
Query query, string queryId, string ruleId, string category
12+
) {
1113
query =
1214
// `Query` instance for the `doNotModifyTheReturnValueOfCertainFunctions` query
1315
Contracts1Package::doNotModifyTheReturnValueOfCertainFunctionsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Declarations1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Declarations1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ newtype Declarations1Query =
1111
TMacroIdentifiersNotDistinctQuery() or
1212
TMacroIdentifierNotDistinctFromParameterQuery()
1313

14-
predicate isDeclarations1QueryMetadata(Query query, string queryId, string ruleId, string category) {
14+
predicate isDeclarations1QueryMetadata(
15+
Query query, string queryId, string ruleId, string category
16+
) {
1517
query =
1618
// `Query` instance for the `declareIdentifiersBeforeUsingThem` query
1719
Declarations1Package::declareIdentifiersBeforeUsingThemQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Expressions.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Expressions.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype ExpressionsQuery =
99
TCallPOSIXOpenWithCorrectArgumentCountQuery() or
1010
TDoNotUseABitwiseOperatorWithABooleanLikeOperandQuery()
1111

12-
predicate isExpressionsQueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isExpressionsQueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `doNotCallFunctionPointerWithIncompatibleType` query
1517
ExpressionsPackage::doNotCallFunctionPointerWithIncompatibleTypeQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/IO1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/IO1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ newtype IO1Query =
1212
TUndefinedBehaviorAccessingAClosedFileQuery() or
1313
TFileUsedAfterClosedQuery()
1414

15-
predicate isIO1QueryMetadata(Query query, string queryId, string ruleId, string category) {
15+
predicate isIO1QueryMetadata(
16+
Query query, string queryId, string ruleId, string category
17+
) {
1618
query =
1719
// `Query` instance for the `excludeUserInputFromFormatStrings` query
1820
IO1Package::excludeUserInputFromFormatStringsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/IO2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/IO2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype IO2Query =
99
TDoNotCallGetcAndPutcWithSideEffectsQuery() or
1010
TOnlyUseValuesForFsetposThatAreReturnedFromFgetposQuery()
1111

12-
predicate isIO2QueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isIO2QueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `doNotCopyAFileObject` query
1517
IO2Package::doNotCopyAFileObjectQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/IO3.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/IO3.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ newtype IO3Query =
1111
TPointerToAFileObjectDereferencedQuery() or
1212
TEofShallBeComparedWithUnmodifiedReturnValuesQuery()
1313

14-
predicate isIO3QueryMetadata(Query query, string queryId, string ruleId, string category) {
14+
predicate isIO3QueryMetadata(
15+
Query query, string queryId, string ruleId, string category
16+
) {
1517
query =
1618
// `Query` instance for the `doNotPerformFileOperationsOnDevices` query
1719
IO3Package::doNotPerformFileOperationsOnDevicesQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Misc.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Misc.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ newtype MiscQuery =
88
TProperlySeedPseudorandomNumberGeneratorsQuery() or
99
TControlFlowReachesTheEndOfANonVoidFunctionQuery()
1010

11-
predicate isMiscQueryMetadata(Query query, string queryId, string ruleId, string category) {
11+
predicate isMiscQueryMetadata(
12+
Query query, string queryId, string ruleId, string category
13+
) {
1214
query =
1315
// `Query` instance for the `randUsedForGeneratingPseudorandomNumbers` query
1416
MiscPackage::randUsedForGeneratingPseudorandomNumbersQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Pointers1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Pointers1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ newtype Pointers1Query =
2222
TObjectWithNoPointerDereferenceShouldBeOpaqueQuery() or
2323
TPointerShouldPointToConstTypeWhenPossibleQuery()
2424

25-
predicate isPointers1QueryMetadata(Query query, string queryId, string ruleId, string category) {
25+
predicate isPointers1QueryMetadata(
26+
Query query, string queryId, string ruleId, string category
27+
) {
2628
query =
2729
// `Query` instance for the `conversionBetweenFunctionPointerAndOtherType` query
2830
Pointers1Package::conversionBetweenFunctionPointerAndOtherTypeQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Pointers2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Pointers2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import codingstandards.cpp.exclusions.RuleMetadata
55

66
newtype Pointers2Query = TDoNotAddOrSubtractAScaledIntegerToAPointerQuery()
77

8-
predicate isPointers2QueryMetadata(Query query, string queryId, string ruleId, string category) {
8+
predicate isPointers2QueryMetadata(
9+
Query query, string queryId, string ruleId, string category
10+
) {
911
query =
1012
// `Query` instance for the `doNotAddOrSubtractAScaledIntegerToAPointer` query
1113
Pointers2Package::doNotAddOrSubtractAScaledIntegerToAPointerQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype Preprocessor1Query =
99
TForbiddenCharactersInHeaderFileNameQuery() or
1010
TIdentifiersUsedInPreprocessorExpressionQuery()
1111

12-
predicate isPreprocessor1QueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isPreprocessor1QueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `includeDirectivesPrecededByDirectivesOrComments` query
1517
Preprocessor1Package::includeDirectivesPrecededByDirectivesOrCommentsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype Preprocessor2Query =
99
TUndefShouldNotBeUsedQuery() or
1010
TPrecautionIncludeGuardsNotProvidedQuery()
1111

12-
predicate isPreprocessor2QueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isPreprocessor2QueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `moreThanOneHashOperatorInMacroDefinition` query
1517
Preprocessor2Package::moreThanOneHashOperatorInMacroDefinitionQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor3.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor3.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import codingstandards.cpp.exclusions.RuleMetadata
55

66
newtype Preprocessor3Query = TControllingExpressionIfDirectiveQuery()
77

8-
predicate isPreprocessor3QueryMetadata(Query query, string queryId, string ruleId, string category) {
8+
predicate isPreprocessor3QueryMetadata(
9+
Query query, string queryId, string ruleId, string category
10+
) {
911
query =
1012
// `Query` instance for the `controllingExpressionIfDirective` query
1113
Preprocessor3Package::controllingExpressionIfDirectiveQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor4.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor4.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ newtype Preprocessor4Query =
88
TFunctionLikeMacroArgsContainHashTokenCQueryQuery() or
99
TDefineAndUndefUsedOnReservedIdentifierOrMacroNameQuery()
1010

11-
predicate isPreprocessor4QueryMetadata(Query query, string queryId, string ruleId, string category) {
11+
predicate isPreprocessor4QueryMetadata(
12+
Query query, string queryId, string ruleId, string category
13+
) {
1214
query =
1315
// `Query` instance for the `macroDefinedWithTheSameNameAsKeyword` query
1416
Preprocessor4Package::macroDefinedWithTheSameNameAsKeywordQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor5.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Preprocessor5.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ newtype Preprocessor5Query =
88
TMacroOrFunctionArgsContainHashTokenQuery() or
99
TMacroParameterNotEnclosedInParenthesesCQueryQuery()
1010

11-
predicate isPreprocessor5QueryMetadata(Query query, string queryId, string ruleId, string category) {
11+
predicate isPreprocessor5QueryMetadata(
12+
Query query, string queryId, string ruleId, string category
13+
) {
1214
query =
1315
// `Query` instance for the `doNotTreatAPredefinedIdentifierAsObject` query
1416
Preprocessor5Package::doNotTreatAPredefinedIdentifierAsObjectQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/SideEffects1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/SideEffects1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ newtype SideEffects1Query =
1515
TPossibleSuppressedSideEffectInLogicOperatorOperandQuery() or
1616
TSizeofOperandWithSideEffectQuery()
1717

18-
predicate isSideEffects1QueryMetadata(Query query, string queryId, string ruleId, string category) {
18+
predicate isSideEffects1QueryMetadata(
19+
Query query, string queryId, string ruleId, string category
20+
) {
1921
query =
2022
// `Query` instance for the `dependenceOnOrderOfScalarEvaluationForSideEffects` query
2123
SideEffects1Package::dependenceOnOrderOfScalarEvaluationForSideEffectsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/SideEffects2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/SideEffects2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ newtype SideEffects2Query =
77
TSideEffectAndCrementInFullExpressionQuery() or
88
TModificationOfFunctionParameterQuery()
99

10-
predicate isSideEffects2QueryMetadata(Query query, string queryId, string ruleId, string category) {
10+
predicate isSideEffects2QueryMetadata(
11+
Query query, string queryId, string ruleId, string category
12+
) {
1113
query =
1214
// `Query` instance for the `sideEffectAndCrementInFullExpression` query
1315
SideEffects2Package::sideEffectAndCrementInFullExpressionQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Strings1.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Strings1.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ newtype Strings1Query =
88
TStringsHasSufficientSpaceForTheNullTerminatorQuery() or
99
TNonNullTerminatedToFunctionThatExpectsAStringQuery()
1010

11-
predicate isStrings1QueryMetadata(Query query, string queryId, string ruleId, string category) {
11+
predicate isStrings1QueryMetadata(
12+
Query query, string queryId, string ruleId, string category
13+
) {
1214
query =
1315
// `Query` instance for the `doNotAttemptToModifyStringLiterals` query
1416
Strings1Package::doNotAttemptToModifyStringLiteralsQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Strings2.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Strings2.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import codingstandards.cpp.exclusions.RuleMetadata
55

66
newtype Strings2Query = TToCharacterHandlingFunctionsRepresentableAsUCharQuery()
77

8-
predicate isStrings2QueryMetadata(Query query, string queryId, string ruleId, string category) {
8+
predicate isStrings2QueryMetadata(
9+
Query query, string queryId, string ruleId, string category
10+
) {
911
query =
1012
// `Query` instance for the `toCharacterHandlingFunctionsRepresentableAsUChar` query
1113
Strings2Package::toCharacterHandlingFunctionsRepresentableAsUCharQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Strings3.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Strings3.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ newtype Strings3Query =
77
TCastCharBeforeConvertingToLargerSizesQuery() or
88
TDoNotConfuseNarrowAndWideFunctionsQuery()
99

10-
predicate isStrings3QueryMetadata(Query query, string queryId, string ruleId, string category) {
10+
predicate isStrings3QueryMetadata(
11+
Query query, string queryId, string ruleId, string category
12+
) {
1113
query =
1214
// `Query` instance for the `castCharBeforeConvertingToLargerSizes` query
1315
Strings3Package::castCharBeforeConvertingToLargerSizesQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/c/Syntax.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/c/Syntax.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ newtype SyntaxQuery =
1212
TUOrUSuffixRepresentedInUnsignedTypeQuery() or
1313
TLowercaseCharacterLUsedInLiteralSuffixQuery()
1414

15-
predicate isSyntaxQueryMetadata(Query query, string queryId, string ruleId, string category) {
15+
predicate isSyntaxQueryMetadata(
16+
Query query, string queryId, string ruleId, string category
17+
) {
1618
query =
1719
// `Query` instance for the `characterSequencesAndUsedWithinAComment` query
1820
SyntaxPackage::characterSequencesAndUsedWithinACommentQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Allocations.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Allocations.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ newtype AllocationsQuery =
2626
TOperatorDeleteMissingPartnerCertQuery() or
2727
TUsingDefaultOperatorNewForOverAlignedTypesQuery()
2828

29-
predicate isAllocationsQueryMetadata(Query query, string queryId, string ruleId, string category) {
29+
predicate isAllocationsQueryMetadata(
30+
Query query, string queryId, string ruleId, string category
31+
) {
3032
query =
3133
// `Query` instance for the `placementNewNotProperlyAlignedAutosar` query
3234
AllocationsPackage::placementNewNotProperlyAlignedAutosarQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedFunctions.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedFunctions.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ newtype BannedFunctionsQuery =
1616
TDoNotUseRandForGeneratingPseudorandomNumbersQuery() or
1717
TPreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctionsQuery()
1818

19-
predicate isBannedFunctionsQueryMetadata(Query query, string queryId, string ruleId, string category) {
19+
predicate isBannedFunctionsQueryMetadata(
20+
Query query, string queryId, string ruleId, string category
21+
) {
2022
query =
2123
// `Query` instance for the `functionsMallocCallocReallocAndFreeUsed` query
2224
BannedFunctionsPackage::functionsMallocCallocReallocAndFreeUsedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedLibraries.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedLibraries.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ newtype BannedLibrariesQuery =
1717
TCstdioTypesUsedQuery() or
1818
TUsageOfAssemblerNotDocumentedQuery()
1919

20-
predicate isBannedLibrariesQueryMetadata(Query query, string queryId, string ruleId, string category) {
20+
predicate isBannedLibrariesQueryMetadata(
21+
Query query, string queryId, string ruleId, string category
22+
) {
2123
query =
2224
// `Query` instance for the `reservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined` query
2325
BannedLibrariesPackage::reservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefinedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedSyntax.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedSyntax.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ newtype BannedSyntaxQuery =
2222
TUsingDeclarationsUsedInHeaderFilesQuery() or
2323
TDoNotDefineACStyleVariadicFunctionQuery()
2424

25-
predicate isBannedSyntaxQueryMetadata(Query query, string queryId, string ruleId, string category) {
25+
predicate isBannedSyntaxQueryMetadata(
26+
Query query, string queryId, string ruleId, string category
27+
) {
2628
query =
2729
// `Query` instance for the `friendDeclarationsUsed` query
2830
BannedSyntaxPackage::friendDeclarationsUsedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedTypes.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/BannedTypes.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ newtype BannedTypesQuery =
99
TAutoPtrTypeUsedQuery() or
1010
TTypeWcharTUsedQuery()
1111

12-
predicate isBannedTypesQueryMetadata(Query query, string queryId, string ruleId, string category) {
12+
predicate isBannedTypesQueryMetadata(
13+
Query query, string queryId, string ruleId, string category
14+
) {
1315
query =
1416
// `Query` instance for the `typeLongDoubleUsed` query
1517
BannedTypesPackage::typeLongDoubleUsedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Classes.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Classes.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ newtype ClassesQuery =
2323
TMemberDataInNonPodClassTypesNotPrivateQuery() or
2424
TOffsetUsedOnInvalidTypeOrMemberQuery()
2525

26-
predicate isClassesQueryMetadata(Query query, string queryId, string ruleId, string category) {
26+
predicate isClassesQueryMetadata(
27+
Query query, string queryId, string ruleId, string category
28+
) {
2729
query =
2830
// `Query` instance for the `nonPodTypeShouldBeDefinedAsClass` query
2931
ClassesPackage::nonPodTypeShouldBeDefinedAsClassQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Comments.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Comments.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ newtype CommentsQuery =
1010
TSlashStarUsedWithinACStyleCommentQuery() or
1111
TNullOnSharedLineQuery()
1212

13-
predicate isCommentsQueryMetadata(Query query, string queryId, string ruleId, string category) {
13+
predicate isCommentsQueryMetadata(
14+
Query query, string queryId, string ruleId, string category
15+
) {
1416
query =
1517
// `Query` instance for the `singleLineCommentEndsWithSlash` query
1618
CommentsPackage::singleLineCommentEndsWithSlashQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Concurrency.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Concurrency.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ newtype ConcurrencyQuery =
1414
TDoNotSpeculativelyLockALockedNonRecursiveMutexQuery() or
1515
TLockedALockedNonRecursiveMutexAuditQuery()
1616

17-
predicate isConcurrencyQueryMetadata(Query query, string queryId, string ruleId, string category) {
17+
predicate isConcurrencyQueryMetadata(
18+
Query query, string queryId, string ruleId, string category
19+
) {
1820
query =
1921
// `Query` instance for the `doNotAllowAMutexToGoOutOfScopeWhileLocked` query
2022
ConcurrencyPackage::doNotAllowAMutexToGoOutOfScopeWhileLockedQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Conditionals.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Conditionals.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ newtype ConditionalsQuery =
2222
TGotoStatementJumpConditionQuery() or
2323
TContinueInForLoopConditionQuery()
2424

25-
predicate isConditionalsQueryMetadata(Query query, string queryId, string ruleId, string category) {
25+
predicate isConditionalsQueryMetadata(
26+
Query query, string queryId, string ruleId, string category
27+
) {
2628
query =
2729
// `Query` instance for the `nonBooleanIfCondition` query
2830
ConditionalsPackage::nonBooleanIfConditionQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Const.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Const.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ newtype ConstQuery =
1818
TMemberFunctionConstIfPossibleQuery() or
1919
TRemoveConstOrVolatileQualificationCertQuery()
2020

21-
predicate isConstQueryMetadata(Query query, string queryId, string ruleId, string category) {
21+
predicate isConstQueryMetadata(
22+
Query query, string queryId, string ruleId, string category
23+
) {
2224
query =
2325
// `Query` instance for the `removeConstOrVolatileQualificationAutosar` query
2426
ConstPackage::removeConstOrVolatileQualificationAutosarQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/DeadCode.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/DeadCode.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ newtype DeadCodeQuery =
2121
TSingleUseMemberPODVariableQuery() or
2222
TDeadCodeQuery()
2323

24-
predicate isDeadCodeQueryMetadata(Query query, string queryId, string ruleId, string category) {
24+
predicate isDeadCodeQueryMetadata(
25+
Query query, string queryId, string ruleId, string category
26+
) {
2527
query =
2628
// `Query` instance for the `uselessAssignment` query
2729
DeadCodePackage::uselessAssignmentQuery() and

‎cpp/common/src/codingstandards/cpp/exclusions/cpp/Declarations.qll

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Declarations.qll
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ newtype DeclarationsQuery =
2222
TTypesNotIdenticalInObjectDeclarationsQuery() or
2323
TTypesNotIdenticalInReturnDeclarationsQuery()
2424

25-
predicate isDeclarationsQueryMetadata(Query query, string queryId, string ruleId, string category) {
25+
predicate isDeclarationsQueryMetadata(
26+
Query query, string queryId, string ruleId, string category
27+
) {
2628
query =
2729
// `Query` instance for the `operatorNewAndOperatorDeleteNotDefinedLocally` query
2830
DeclarationsPackage::operatorNewAndOperatorDeleteNotDefinedLocallyQuery() and

0 commit comments

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