Skip to content

Commit edc9e23

Browse files
committed
C++: Deprecate class Qualifier
It's not used anywhere outside `VoidContext.qll`, where it was defined. The use in `VoidContext.qll` is 10 years old and was a workaround for an extractor bug that no longer exists.
1 parent 219fcb7 commit edc9e23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/commons/VoidContext.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import semmle.code.cpp.exprs.Expr
22

33
/**
4+
* DEPRECATED: This class has not been useful.
45
* An expression that is used to qualify some other expression.
56
*/
6-
class Qualifier extends Expr {
7+
deprecated class Qualifier extends Expr {
78
Qualifier() {
89
exists(VariableAccess a | a.getQualifier() = this) or
910
exists(Call c | c.getQualifier() = this) or
@@ -36,6 +37,5 @@ private predicate exprInVoidContext(Expr e) {
3637
or
3738
exists(CommaExpr c | c.getRightOperand() = e and c instanceof ExprInVoidContext)
3839
) and
39-
not e instanceof Qualifier and
4040
not e.getActualType() instanceof VoidType
4141
}

0 commit comments

Comments
 (0)