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 {
849
849
class LocalClass extends Class {
850
850
LocalClass ( ) { isLocal ( ) }
851
851
852
- override string getAPrimaryQlClass ( ) {
853
- not this instanceof LocalStruct and result = "LocalClass"
854
- }
852
+ override string getAPrimaryQlClass ( ) { not this instanceof LocalStruct and result = "LocalClass" }
855
853
856
854
override Function getEnclosingAccessHolder ( ) { result = this .getEnclosingFunction ( ) }
857
855
}
Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ class Struct extends Class {
43
43
class LocalStruct extends Struct {
44
44
LocalStruct ( ) { isLocal ( ) }
45
45
46
- override string getAPrimaryQlClass ( ) {
47
- not this instanceof LocalUnion and result = "LocalStruct"
48
- }
46
+ override string getAPrimaryQlClass ( ) { not this instanceof LocalUnion and result = "LocalStruct" }
49
47
}
50
48
51
49
/**
Original file line number Diff line number Diff line change @@ -289,9 +289,7 @@ class PointerConversion extends Cast {
289
289
isPointerOrNullPointer ( getExpr ( ) .getUnspecifiedType ( ) )
290
290
}
291
291
292
- override string getAPrimaryQlClass ( ) {
293
- not exists ( qlCast ( this ) ) and result = "PointerConversion"
294
- }
292
+ override string getAPrimaryQlClass ( ) { not exists ( qlCast ( this ) ) and result = "PointerConversion" }
295
293
296
294
override string getSemanticConversionString ( ) { result = "pointer conversion" }
297
295
}
@@ -569,9 +567,7 @@ class PointerToMemberDerivedClassConversion extends Cast {
569
567
class GlvalueConversion extends Cast {
570
568
GlvalueConversion ( ) { conversionkinds ( underlyingElement ( this ) , 6 ) }
571
569
572
- override string getAPrimaryQlClass ( ) {
573
- not exists ( qlCast ( this ) ) and result = "GlvalueConversion"
574
- }
570
+ override string getAPrimaryQlClass ( ) { not exists ( qlCast ( this ) ) and result = "GlvalueConversion" }
575
571
576
572
override string getSemanticConversionString ( ) { result = "glvalue conversion" }
577
573
}
You can’t perform that action at this time.
0 commit comments