File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -909,17 +909,17 @@ class TranslatedTransparentUnaryOperation extends TranslatedTransparentExpr {
909909 }
910910}
911911
912+ private predicate isTransparentConversion ( Conversion expr ) {
913+ expr instanceof ParenthesisExpr or
914+ expr instanceof ReferenceDereferenceExpr or
915+ expr instanceof ReferenceToExpr or
916+ expr instanceof C11GenericExpr
917+ }
918+
912919class TranslatedTransparentConversion extends TranslatedTransparentExpr {
913920 override Conversion expr ;
914921
915- TranslatedTransparentConversion ( ) {
916- (
917- expr instanceof ParenthesisExpr or
918- expr instanceof ReferenceDereferenceExpr or
919- expr instanceof ReferenceToExpr or
920- expr instanceof C11GenericExpr
921- )
922- }
922+ TranslatedTransparentConversion ( ) { isTransparentConversion ( expr ) }
923923
924924 override TranslatedExpr getOperand ( ) { result = getTranslatedExpr ( expr .getExpr ( ) ) }
925925}
You can’t perform that action at this time.
0 commit comments