Skip to content

Commit a22fb76

Browse files
committed
C++: Autoformat fixup
1 parent c1b26d7 commit a22fb76

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

cpp/ql/src/semmle/code/cpp/Class.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,7 @@ class ClassDerivation extends Locatable, @derivation {
849849
class 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
}

cpp/ql/src/semmle/code/cpp/Struct.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ class Struct extends Class {
4343
class 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
/**

cpp/ql/src/semmle/code/cpp/exprs/Cast.qll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {
569567
class 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
}

0 commit comments

Comments
 (0)