Skip to content

Commit 0ba3359

Browse files
committed
A7-1-2: Remove FunctionMissingConstexpr query
As per #843
1 parent 59ff051 commit 0ba3359

File tree

5 files changed

+0
-205
lines changed

5 files changed

+0
-205
lines changed

cpp/autosar/src/rules/A7-1-2/FunctionMissingConstexpr.ql

Lines changed: 0 additions & 160 deletions
This file was deleted.

cpp/autosar/test/rules/A7-1-2/FunctionMissingConstexpr.expected

Lines changed: 0 additions & 16 deletions
This file was deleted.

cpp/autosar/test/rules/A7-1-2/FunctionMissingConstexpr.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ newtype ConstQuery =
77
TRemoveConstOrVolatileQualificationAutosarQuery() or
88
TDeclarationUnmodifiedObjectMissingConstSpecifierQuery() or
99
TVariableMissingConstexprQuery() or
10-
TFunctionMissingConstexprQuery() or
1110
TCvQualifiersNotPlacedOnTheRightHandSideQuery() or
1211
TOutputParametersUsedQuery() or
1312
TInOutParametersDeclaredAsTNotModifiedQuery() or
@@ -45,15 +44,6 @@ predicate isConstQueryMetadata(Query query, string queryId, string ruleId, strin
4544
ruleId = "A7-1-2" and
4645
category = "required"
4746
or
48-
query =
49-
// `Query` instance for the `functionMissingConstexpr` query
50-
ConstPackage::functionMissingConstexprQuery() and
51-
queryId =
52-
// `@id` for the `functionMissingConstexpr` query
53-
"cpp/autosar/function-missing-constexpr" and
54-
ruleId = "A7-1-2" and
55-
category = "required"
56-
or
5747
query =
5848
// `Query` instance for the `cvQualifiersNotPlacedOnTheRightHandSide` query
5949
ConstPackage::cvQualifiersNotPlacedOnTheRightHandSideQuery() and
@@ -149,13 +139,6 @@ module ConstPackage {
149139
TQueryCPP(TConstPackageQuery(TVariableMissingConstexprQuery()))
150140
}
151141

152-
Query functionMissingConstexprQuery() {
153-
//autogenerate `Query` type
154-
result =
155-
// `Query` type for `functionMissingConstexpr` query
156-
TQueryCPP(TConstPackageQuery(TFunctionMissingConstexprQuery()))
157-
}
158-
159142
Query cvQualifiersNotPlacedOnTheRightHandSideQuery() {
160143
//autogenerate `Query` type
161144
result =

rule_packages/cpp/Const.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,6 @@
7171
"tags": [
7272
"maintainability"
7373
]
74-
},
75-
{
76-
"description": "Using 'constexpr' makes it clear that a function is intended to return a compile time constant.",
77-
"kind": "problem",
78-
"name": "The constexpr specifier shall be used for functions whose return value can be determined at compile time",
79-
"precision": "high",
80-
"severity": "recommendation",
81-
"short_name": "FunctionMissingConstexpr",
82-
"tags": [
83-
"maintainability"
84-
]
8574
}
8675
],
8776
"title": "The constexpr specifier shall be used for values that can be determined at compile time."

0 commit comments

Comments
 (0)