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 0bdf011

Browse filesBrowse files
committed
Address incorrect formatting
1 parent acb0ff1 commit 0bdf011
Copy full SHA for 0bdf011

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

46 files changed

+46
-138
lines changed

‎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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ newtype AllocationsQuery =
2626
TOperatorDeleteMissingPartnerCertQuery() or
2727
TUsingDefaultOperatorNewForOverAlignedTypesQuery()
2828

29-
predicate isAllocationsQueryMetadata(
30-
Query query, string queryId, string ruleId, string category
31-
) {
29+
predicate isAllocationsQueryMetadata(Query query, string queryId, string ruleId, string category) {
3230
query =
3331
// `Query` instance for the `placementNewNotProperlyAlignedAutosar` query
3432
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ newtype BannedFunctionsQuery =
1616
TDoNotUseRandForGeneratingPseudorandomNumbersQuery() or
1717
TPreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctionsQuery()
1818

19-
predicate isBannedFunctionsQueryMetadata(
20-
Query query, string queryId, string ruleId, string category
21-
) {
19+
predicate isBannedFunctionsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2220
query =
2321
// `Query` instance for the `functionsMallocCallocReallocAndFreeUsed` query
2422
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ newtype BannedLibrariesQuery =
1717
TCstdioTypesUsedQuery() or
1818
TUsageOfAssemblerNotDocumentedQuery()
1919

20-
predicate isBannedLibrariesQueryMetadata(
21-
Query query, string queryId, string ruleId, string category
22-
) {
20+
predicate isBannedLibrariesQueryMetadata(Query query, string queryId, string ruleId, string category) {
2321
query =
2422
// `Query` instance for the `reservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined` query
2523
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ newtype BannedSyntaxQuery =
2222
TUsingDeclarationsUsedInHeaderFilesQuery() or
2323
TDoNotDefineACStyleVariadicFunctionQuery()
2424

25-
predicate isBannedSyntaxQueryMetadata(
26-
Query query, string queryId, string ruleId, string category
27-
) {
25+
predicate isBannedSyntaxQueryMetadata(Query query, string queryId, string ruleId, string category) {
2826
query =
2927
// `Query` instance for the `friendDeclarationsUsed` query
3028
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ newtype BannedTypesQuery =
99
TAutoPtrTypeUsedQuery() or
1010
TTypeWcharTUsedQuery()
1111

12-
predicate isBannedTypesQueryMetadata(
13-
Query query, string queryId, string ruleId, string category
14-
) {
12+
predicate isBannedTypesQueryMetadata(Query query, string queryId, string ruleId, string category) {
1513
query =
1614
// `Query` instance for the `typeLongDoubleUsed` query
1715
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ newtype ClassesQuery =
2323
TMemberDataInNonPodClassTypesNotPrivateQuery() or
2424
TOffsetUsedOnInvalidTypeOrMemberQuery()
2525

26-
predicate isClassesQueryMetadata(
27-
Query query, string queryId, string ruleId, string category
28-
) {
26+
predicate isClassesQueryMetadata(Query query, string queryId, string ruleId, string category) {
2927
query =
3028
// `Query` instance for the `nonPodTypeShouldBeDefinedAsClass` query
3129
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ newtype CommentsQuery =
1010
TSlashStarUsedWithinACStyleCommentQuery() or
1111
TNullOnSharedLineQuery()
1212

13-
predicate isCommentsQueryMetadata(
14-
Query query, string queryId, string ruleId, string category
15-
) {
13+
predicate isCommentsQueryMetadata(Query query, string queryId, string ruleId, string category) {
1614
query =
1715
// `Query` instance for the `singleLineCommentEndsWithSlash` query
1816
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ newtype ConcurrencyQuery =
1414
TDoNotSpeculativelyLockALockedNonRecursiveMutexQuery() or
1515
TLockedALockedNonRecursiveMutexAuditQuery()
1616

17-
predicate isConcurrencyQueryMetadata(
18-
Query query, string queryId, string ruleId, string category
19-
) {
17+
predicate isConcurrencyQueryMetadata(Query query, string queryId, string ruleId, string category) {
2018
query =
2119
// `Query` instance for the `doNotAllowAMutexToGoOutOfScopeWhileLocked` query
2220
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ newtype ConditionalsQuery =
2222
TGotoStatementJumpConditionQuery() or
2323
TContinueInForLoopConditionQuery()
2424

25-
predicate isConditionalsQueryMetadata(
26-
Query query, string queryId, string ruleId, string category
27-
) {
25+
predicate isConditionalsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2826
query =
2927
// `Query` instance for the `nonBooleanIfCondition` query
3028
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ newtype ConstQuery =
1818
TMemberFunctionConstIfPossibleQuery() or
1919
TRemoveConstOrVolatileQualificationCertQuery()
2020

21-
predicate isConstQueryMetadata(
22-
Query query, string queryId, string ruleId, string category
23-
) {
21+
predicate isConstQueryMetadata(Query query, string queryId, string ruleId, string category) {
2422
query =
2523
// `Query` instance for the `removeConstOrVolatileQualificationAutosar` query
2624
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ newtype DeadCodeQuery =
2121
TSingleUseMemberPODVariableQuery() or
2222
TDeadCodeQuery()
2323

24-
predicate isDeadCodeQueryMetadata(
25-
Query query, string queryId, string ruleId, string category
26-
) {
24+
predicate isDeadCodeQueryMetadata(Query query, string queryId, string ruleId, string category) {
2725
query =
2826
// `Query` instance for the `uselessAssignment` query
2927
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
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ newtype DeclarationsQuery =
2222
TTypesNotIdenticalInObjectDeclarationsQuery() or
2323
TTypesNotIdenticalInReturnDeclarationsQuery()
2424

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

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/ExceptionSafety.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ newtype ExceptionSafetyQuery =
1010
TGuaranteeExceptionSafetyQuery() or
1111
TDoNotLeakResourcesWhenHandlingExceptionsQuery()
1212

13-
predicate isExceptionSafetyQueryMetadata(
14-
Query query, string queryId, string ruleId, string category
15-
) {
13+
predicate isExceptionSafetyQueryMetadata(Query query, string queryId, string ruleId, string category) {
1614
query =
1715
// `Query` instance for the `exceptionSafetyGuaranteesNotProvided` query
1816
ExceptionSafetyPackage::exceptionSafetyGuaranteesNotProvidedQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Exceptions1.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ newtype Exceptions1Query =
3939
TExceptionObjectsMustBeNothrowCopyConstructibleQuery() or
4040
TCatchExceptionsByLvalueReferenceQuery()
4141

42-
predicate isExceptions1QueryMetadata(
43-
Query query, string queryId, string ruleId, string category
44-
) {
42+
predicate isExceptions1QueryMetadata(Query query, string queryId, string ruleId, string category) {
4543
query =
4644
// `Query` instance for the `exceptionThrownOnCompletion` query
4745
Exceptions1Package::exceptionThrownOnCompletionQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Exceptions2.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ newtype Exceptions2Query =
2222
TDoNotLetExceptionsEscapeFromDestructorsOrDeallocationFunctionsQuery() or
2323
TCatchBlockShadowingCertQuery()
2424

25-
predicate isExceptions2QueryMetadata(
26-
Query query, string queryId, string ruleId, string category
27-
) {
25+
predicate isExceptions2QueryMetadata(Query query, string queryId, string ruleId, string category) {
2826
query =
2927
// `Query` instance for the `onlyThrowStdExceptionDerivedTypes` query
3028
Exceptions2Package::onlyThrowStdExceptionDerivedTypesQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Expressions.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ newtype ExpressionsQuery =
2121
TPassReferenceTypeToVaStartQuery() or
2222
TPassNonTrivialObjectToVaStartQuery()
2323

24-
predicate isExpressionsQueryMetadata(
25-
Query query, string queryId, string ruleId, string category
26-
) {
24+
predicate isExpressionsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2725
query =
2826
// `Query` instance for the `operationsAssumingMemoryLayoutPerformedOnObjects` query
2927
ExpressionsPackage::operationsAssumingMemoryLayoutPerformedOnObjectsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Freed.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ newtype FreedQuery =
1414
TObjectAccessedAfterLifetimeCertQuery() or
1515
TUseAfterFreeQuery()
1616

17-
predicate isFreedQueryMetadata(
18-
Query query, string queryId, string ruleId, string category
19-
) {
17+
predicate isFreedQueryMetadata(Query query, string queryId, string ruleId, string category) {
2018
query =
2119
// `Query` instance for the `newDeleteArrayMismatch` query
2220
FreedPackage::newDeleteArrayMismatchQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Functions.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ newtype FunctionsQuery =
1919
TNonVoidFunctionDoesNotReturnCertQuery() or
2020
TFunctionNoReturnAttributeConditionCertQuery()
2121

22-
predicate isFunctionsQueryMetadata(
23-
Query query, string queryId, string ruleId, string category
24-
) {
22+
predicate isFunctionsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2523
query =
2624
// `Query` instance for the `cStandardLibraryFunctionCalls` query
2725
FunctionsPackage::cStandardLibraryFunctionCallsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/IO.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ newtype IOQuery =
88
TInterleavedInputOutputWithoutPositionQuery() or
99
TCloseFilesWhenTheyAreNoLongerNeededQuery()
1010

11-
predicate isIOQueryMetadata(
12-
Query query, string queryId, string ruleId, string category
13-
) {
11+
predicate isIOQueryMetadata(Query query, string queryId, string ruleId, string category) {
1412
query =
1513
// `Query` instance for the `interleavedInputOutputWithoutFlush` query
1614
IOPackage::interleavedInputOutputWithoutFlushQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Includes.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ newtype IncludesQuery =
1111
TExternalLinkageNotDeclaredInHeaderFileQuery() or
1212
TIncludeGuardsNotProvidedQuery()
1313

14-
predicate isIncludesQueryMetadata(
15-
Query query, string queryId, string ruleId, string category
16-
) {
14+
predicate isIncludesQueryMetadata(Query query, string queryId, string ruleId, string category) {
1715
query =
1816
// `Query` instance for the `unusedIncludeDirectives` query
1917
IncludesPackage::unusedIncludeDirectivesQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Inheritance.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ newtype InheritanceQuery =
1818
TDoNotSliceDerivedObjectsQuery() or
1919
TDoNotDeleteAPolymorphicObjectWithoutAVirtualDestructorQuery()
2020

21-
predicate isInheritanceQueryMetadata(
22-
Query query, string queryId, string ruleId, string category
23-
) {
21+
predicate isInheritanceQueryMetadata(Query query, string queryId, string ruleId, string category) {
2422
query =
2523
// `Query` instance for the `publicInheritanceNotUsedForIsARelationship` query
2624
InheritancePackage::publicInheritanceNotUsedForIsARelationshipQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Initialization.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ newtype InitializationQuery =
2626
TBadlySeededRandomNumberGeneratorQuery() or
2727
TUseCanonicalOrderForMemberInitQuery()
2828

29-
predicate isInitializationQueryMetadata(
30-
Query query, string queryId, string ruleId, string category
31-
) {
29+
predicate isInitializationQueryMetadata(Query query, string queryId, string ruleId, string category) {
3230
query =
3331
// `Query` instance for the `explicitConstructorBaseClassInitialization` query
3432
InitializationPackage::explicitConstructorBaseClassInitializationQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Invariants.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ newtype InvariantsQuery =
1111
THonorTerminationReplacementHandlerRequirementsQuery() or
1212
THonorNewReplacementHandlerRequirementsQuery()
1313

14-
predicate isInvariantsQueryMetadata(
15-
Query query, string queryId, string ruleId, string category
16-
) {
14+
predicate isInvariantsQueryMetadata(Query query, string queryId, string ruleId, string category) {
1715
query =
1816
// `Query` instance for the `memoryManagementFunctionInvariants` query
1917
InvariantsPackage::memoryManagementFunctionInvariantsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Iterators.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ newtype IteratorsQuery =
1212
TDoNotUseAnAdditiveOperatorOnAnIteratorQuery() or
1313
TUseValidReferencesForElementsOfStringQuery()
1414

15-
predicate isIteratorsQueryMetadata(
16-
Query query, string queryId, string ruleId, string category
17-
) {
15+
predicate isIteratorsQueryMetadata(Query query, string queryId, string ruleId, string category) {
1816
query =
1917
// `Query` instance for the `iteratorImplicitlyConvertedToConstIterator` query
2018
IteratorsPackage::iteratorImplicitlyConvertedToConstIteratorQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Lambdas.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ newtype LambdasQuery =
1616
TReturningLambdaObjectWithCaptureByReferenceQuery() or
1717
TEscapingLambdaObjectWithCaptureByReferenceQuery()
1818

19-
predicate isLambdasQueryMetadata(
20-
Query query, string queryId, string ruleId, string category
21-
) {
19+
predicate isLambdasQueryMetadata(Query query, string queryId, string ruleId, string category) {
2220
query =
2321
// `Query` instance for the `implicitLambdaCapture` query
2422
LambdasPackage::implicitLambdaCaptureQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Literals.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ newtype LiteralsQuery =
1616
TNullUsedAsIntegerValueQuery() or
1717
TLiteralZeroUsedAsNullPointerConstantQuery()
1818

19-
predicate isLiteralsQueryMetadata(
20-
Query query, string queryId, string ruleId, string category
21-
) {
19+
predicate isLiteralsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2220
query =
2321
// `Query` instance for the `useCorrectIntervalForDigitSequencesSeparators` query
2422
LiteralsPackage::useCorrectIntervalForDigitSequencesSeparatorsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Loops.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ newtype LoopsQuery =
1818
TLoopControlVariableModifiedInLoopExpressionQuery() or
1919
TNonBooleanLoopControlVariableQuery()
2020

21-
predicate isLoopsQueryMetadata(
22-
Query query, string queryId, string ruleId, string category
23-
) {
21+
predicate isLoopsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2422
query =
2523
// `Query` instance for the `unusedLoopCounterForContainerIteration` query
2624
LoopsPackage::unusedLoopCounterForContainerIterationQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Macros.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ newtype MacrosQuery =
1717
TMoreThanOneOccurrenceHashOperatorInMacroDefinitionQuery() or
1818
THashOperatorsShouldNotBeUsedQuery()
1919

20-
predicate isMacrosQueryMetadata(
21-
Query query, string queryId, string ruleId, string category
22-
) {
20+
predicate isMacrosQueryMetadata(Query query, string queryId, string ruleId, string category) {
2321
query =
2422
// `Query` instance for the `preProcessorShallOnlyBeUsedForCertainDirectivesPatterns` query
2523
MacrosPackage::preProcessorShallOnlyBeUsedForCertainDirectivesPatternsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/MoveForward.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ newtype MoveForwardQuery =
1212
TForwardForwardingReferencesQuery() or
1313
TDoNotRelyOnTheValueOfAMovedFromObjectQuery()
1414

15-
predicate isMoveForwardQueryMetadata(
16-
Query query, string queryId, string ruleId, string category
17-
) {
15+
predicate isMoveForwardQueryMetadata(Query query, string queryId, string ruleId, string category) {
1816
query =
1917
// `Query` instance for the `movedFromObjectReadAccessed` query
2018
MoveForwardPackage::movedFromObjectReadAccessedQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Naming.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ newtype NamingQuery =
3232
TFunctionReusesReservedNameQuery() or
3333
TEnumeratorReusesReservedNameQuery()
3434

35-
predicate isNamingQueryMetadata(
36-
Query query, string queryId, string ruleId, string category
37-
) {
35+
predicate isNamingQueryMetadata(Query query, string queryId, string ruleId, string category) {
3836
query =
3937
// `Query` instance for the `userDefinedLiteralOperatorSuffixViolation` query
4038
NamingPackage::userDefinedLiteralOperatorSuffixViolationQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Null.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ newtype NullQuery =
88
TParameterNotPassedByReferenceQuery() or
99
TDoNotAttemptToCreateAStringFromANullPointerQuery()
1010

11-
predicate isNullQueryMetadata(
12-
Query query, string queryId, string ruleId, string category
13-
) {
11+
predicate isNullQueryMetadata(Query query, string queryId, string ruleId, string category) {
1412
query =
1513
// `Query` instance for the `nullPointersDereferenced` query
1614
NullPackage::nullPointersDereferencedQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Operators.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ newtype OperatorsQuery =
2020
TUnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsignedQuery() or
2121
TUnaryOperatorOverloadedQuery()
2222

23-
predicate isOperatorsQueryMetadata(
24-
Query query, string queryId, string ruleId, string category
25-
) {
23+
predicate isOperatorsQueryMetadata(Query query, string queryId, string ruleId, string category) {
2624
query =
2725
// `Query` instance for the `userDefinedAssignmentOperatorVirtual` query
2826
OperatorsPackage::userDefinedAssignmentOperatorVirtualQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/OutOfBounds.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ newtype OutOfBoundsQuery =
99
TGuaranteeGenericCppLibraryFunctionsDoNotOverflowQuery() or
1010
TRangeCheckStringElementAccessQuery()
1111

12-
predicate isOutOfBoundsQueryMetadata(
13-
Query query, string queryId, string ruleId, string category
14-
) {
12+
predicate isOutOfBoundsQueryMetadata(Query query, string queryId, string ruleId, string category) {
1513
query =
1614
// `Query` instance for the `containerAccessWithoutRangeCheckAutosar` query
1715
OutOfBoundsPackage::containerAccessWithoutRangeCheckAutosarQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Pointers.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ newtype PointersQuery =
2828
TMemberAccessWithUninitializedStaticPointerToMemberQuery() or
2929
TUseOfPointerToMemberToAccessNonexistentMemberQuery()
3030

31-
predicate isPointersQueryMetadata(
32-
Query query, string queryId, string ruleId, string category
33-
) {
31+
predicate isPointersQueryMetadata(Query query, string queryId, string ruleId, string category) {
3432
query =
3533
// `Query` instance for the `pointerToAnElementOfAnArrayPassedToASmartPointer` query
3634
PointersPackage::pointerToAnElementOfAnArrayPassedToASmartPointerQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Representation.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ newtype RepresentationQuery =
1313
TMemcmpUsedToAccessObjectRepresentationQuery() or
1414
TMemcpyUsedToAccessObjectRepresentationQuery()
1515

16-
predicate isRepresentationQueryMetadata(
17-
Query query, string queryId, string ruleId, string category
18-
) {
16+
predicate isRepresentationQueryMetadata(Query query, string queryId, string ruleId, string category) {
1917
query =
2018
// `Query` instance for the `bitFieldsShallBeUsedOnlyWhenInterfacingToHardwareOrConformingToCommunicationProtocols` query
2119
RepresentationPackage::bitFieldsShallBeUsedOnlyWhenInterfacingToHardwareOrConformingToCommunicationProtocolsQuery() and

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/exclusions/cpp/Scope.qll
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ newtype ScopeQuery =
2222
TUnnamedNamespaceInHeaderFileQuery() or
2323
TOneDefinitionRuleNotObeyedQuery()
2424

25-
predicate isScopeQueryMetadata(
26-
Query query, string queryId, string ruleId, string category
27-
) {
25+
predicate isScopeQueryMetadata(Query query, string queryId, string ruleId, string category) {
2826
query =
2927
// `Query` instance for the `nonStandardEntitiesInStandardNamespaces` query
3028
ScopePackage::nonStandardEntitiesInStandardNamespacesQuery() and

0 commit comments

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