File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -849,9 +849,7 @@ class ClassDerivation extends Locatable, @derivation {
849849class LocalClass extends Class {
850850 LocalClass ( ) { isLocal ( ) }
851851
852- override string getAPrimaryQlClass ( ) {
853- not this instanceof LocalStruct and result = "LocalClass"
854- }
852+ override string getAPrimaryQlClass ( ) { not this instanceof LocalStruct and result = "LocalClass" }
855853
856854 override Function getEnclosingAccessHolder ( ) { result = this .getEnclosingFunction ( ) }
857855}
Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ class Struct extends Class {
4343class LocalStruct extends Struct {
4444 LocalStruct ( ) { isLocal ( ) }
4545
46- override string getAPrimaryQlClass ( ) {
47- not this instanceof LocalUnion and result = "LocalStruct"
48- }
46+ override string getAPrimaryQlClass ( ) { not this instanceof LocalUnion and result = "LocalStruct" }
4947}
5048
5149/**
Original file line number Diff line number Diff line change @@ -289,9 +289,7 @@ class PointerConversion extends Cast {
289289 isPointerOrNullPointer ( getExpr ( ) .getUnspecifiedType ( ) )
290290 }
291291
292- override string getAPrimaryQlClass ( ) {
293- not exists ( qlCast ( this ) ) and result = "PointerConversion"
294- }
292+ override string getAPrimaryQlClass ( ) { not exists ( qlCast ( this ) ) and result = "PointerConversion" }
295293
296294 override string getSemanticConversionString ( ) { result = "pointer conversion" }
297295}
@@ -569,9 +567,7 @@ class PointerToMemberDerivedClassConversion extends Cast {
569567class GlvalueConversion extends Cast {
570568 GlvalueConversion ( ) { conversionkinds ( underlyingElement ( this ) , 6 ) }
571569
572- override string getAPrimaryQlClass ( ) {
573- not exists ( qlCast ( this ) ) and result = "GlvalueConversion"
574- }
570+ override string getAPrimaryQlClass ( ) { not exists ( qlCast ( this ) ) and result = "GlvalueConversion" }
575571
576572 override string getSemanticConversionString ( ) { result = "glvalue conversion" }
577573}
You can’t perform that action at this time.
0 commit comments