Skip to content

Commit 39dd9b7

Browse files
author
Dave Bartolomeo
committed
C++/C#: Fix formatting
1 parent c3a6ca0 commit 39dd9b7

File tree

3 files changed

+7
-11
lines changed
  • cpp/ql
  • csharp/ql/src/semmle/code/csharp/ir/implementation

3 files changed

+7
-11
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/IRType.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,10 @@ class IRUnsignedIntegerType extends IRNumericType, TIRUnsignedIntegerType {
173173
* A floating-point type.
174174
*/
175175
class IRFloatingPointType extends IRNumericType, TIRFloatingPointType {
176-
private final int base;
177-
private final Language::TypeDomain domain;
176+
final private int base;
177+
final private Language::TypeDomain domain;
178178

179-
IRFloatingPointType() {
180-
this = TIRFloatingPointType(_, base, domain)
181-
}
179+
IRFloatingPointType() { this = TIRFloatingPointType(_, base, domain) }
182180

183181
final override string toString() {
184182
result = getDomainPrefix() + getBaseString() + byteSize.toString()

cpp/ql/test/library-tests/ir/types/irtypes.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class IRTypesTest extends InlineExpectationsTest {
1010
override predicate hasActualResult(Location location, string element, string tag, string value) {
1111
exists(IRUserVariable irVar |
1212
location = irVar.getLocation() and
13-
element = irVar.toString() and
13+
element = irVar.toString() and
1414
tag = "irtype" and
1515
value = irVar.getIRType().toString()
1616
)

csharp/ql/src/semmle/code/csharp/ir/implementation/IRType.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,10 @@ class IRUnsignedIntegerType extends IRNumericType, TIRUnsignedIntegerType {
173173
* A floating-point type.
174174
*/
175175
class IRFloatingPointType extends IRNumericType, TIRFloatingPointType {
176-
private final int base;
177-
private final Language::TypeDomain domain;
176+
final private int base;
177+
final private Language::TypeDomain domain;
178178

179-
IRFloatingPointType() {
180-
this = TIRFloatingPointType(_, base, domain)
181-
}
179+
IRFloatingPointType() { this = TIRFloatingPointType(_, base, domain) }
182180

183181
final override string toString() {
184182
result = getDomainPrefix() + getBaseString() + byteSize.toString()

0 commit comments

Comments
 (0)