File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
cpp/ql/lib/semmle/code/cpp/exprs Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import semmle.code.cpp.Element
6
6
private import semmle.code.cpp.Enclosing
7
7
private import semmle.code.cpp.internal.ResolveClass
8
8
private import semmle.code.cpp.internal.AddressConstantExpression
9
+ private import semmle.code.cpp.internal.ExtractorVersion
9
10
10
11
/**
11
12
* A C/C++ expression.
@@ -1371,17 +1372,7 @@ class ReuseExpr extends Expr, @reuseexpr {
1371
1372
/**
1372
1373
* Gets the expression that is being re-used.
1373
1374
*/
1374
- Expr getReusedExpr ( ) {
1375
- // In the case of a prvalue, the extractor outputs the expression
1376
- // before conversion, but the converted expression is intended.
1377
- if this .isPRValueCategory ( )
1378
- then result = this .getBaseReusedExpr ( ) .getFullyConverted ( )
1379
- else result = this .getBaseReusedExpr ( )
1380
- }
1381
-
1382
- private Expr getBaseReusedExpr ( ) {
1383
- expr_reuse ( underlyingElement ( this ) , unresolveElement ( result ) , _)
1384
- }
1375
+ Expr getReusedExpr ( ) { expr_reuse ( underlyingElement ( this ) , unresolveElement ( result ) , _) }
1385
1376
1386
1377
override Type getType ( ) { result = this .getReusedExpr ( ) .getType ( ) }
1387
1378
You can’t perform that action at this time.
0 commit comments