Skip to content

Commit c68d3c5

Browse files
alexetMathiasVP
andauthored
Update cpp/ql/src/Security/CWE/CWE-416/Temporaries.qll
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 49e1467 commit c68d3c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-416/Temporaries.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ predicate isStoredInContainer(Expr e) {
4545
/**
4646
* Holds if `e` or a conversion of `e` has an lvalue-to-rvalue conversion.
4747
*/
48-
predicate hasLValueToRValueConversion(Expr e) {
48+
private predicate hasLValueToRValueConversion(Expr e) {
4949
e.getConversion*().hasLValueToRValueConversion() and
5050
not e instanceof ConditionalExpr // ConditionalExpr may be spuriously reported as having an lvalue-to-rvalue conversion
5151
}

0 commit comments

Comments
 (0)