Skip to content

Commit 5100d3e

Browse files
authored
Merge pull request #315 from jketema/dead-classes
Remove unused classes from queries
2 parents fb98472 + c27d9a6 commit 5100d3e

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

cpp/autosar/src/rules/A15-3-3/MissingCatchHandlerInMain.ql

-18
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,6 @@ import codingstandards.cpp.exceptions.ThirdPartyExceptions
2222
import codingstandards.cpp.standardlibrary.Exceptions
2323
import codingstandards.cpp.EncapsulatingFunctions
2424

25-
/** A `TryStmt` which covers the full body of a function. */
26-
class FullFunctionBodyTryStmt extends TryStmt {
27-
FullFunctionBodyTryStmt() {
28-
this instanceof FunctionTryStmt
29-
or
30-
exists(Function f, BlockStmt functionBlock |
31-
functionBlock = f.getBlock() and
32-
this = functionBlock.getStmt(0) and
33-
(
34-
functionBlock.getNumStmt() = 1
35-
or
36-
functionBlock.getNumStmt() = 2 and
37-
functionBlock.getStmt(1) instanceof ReturnStmt
38-
)
39-
)
40-
}
41-
}
42-
4325
/*
4426
* The strategy for this query is to find a Stmt in the root BlockStmt which can throw one of the
4527
* ExceptionTypes that should be handled.

cpp/autosar/src/rules/A7-1-5/AutoSpecifierNotUsedAppropriatelyInVariableDefinition.ql

-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
import cpp
2020
import codingstandards.cpp.autosar
2121

22-
// for readability we define a "fundamental" type
23-
class FundamentalType extends Type {
24-
FundamentalType() { this instanceof BuiltInType }
25-
}
26-
2722
from Variable v
2823
where
2924
not isExcluded(v,

0 commit comments

Comments
 (0)