Skip to content

Commit 8c6c011

Browse files
committed
Formatting fixes, comment moving.
1 parent 9c946a7 commit 8c6c011

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cpp/ql/src/semmle/code/cpp/commons/CommonType.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,43 +66,43 @@ class Ptrdiff_t extends Type {
6666
/**
6767
* A parent class representing C/C++ a typedef'd `UserType` such as `int8_t`.
6868
*/
69-
private abstract class IntegralUnderlyingUserType extends UserType {
69+
abstract private class IntegralUnderlyingUserType extends UserType {
7070
IntegralUnderlyingUserType() { this.getUnderlyingType() instanceof IntegralType }
7171
}
7272

73+
abstract private class TFixedWidthIntegralType extends IntegralUnderlyingUserType { }
74+
7375
/**
7476
* A C/C++ fixed-width numeric type, such as `int8_t`.
7577
*/
76-
abstract private class TFixedWidthIntegralType extends IntegralUnderlyingUserType { }
77-
7878
class FixedWidthIntegralType extends TFixedWidthIntegralType {
7979
FixedWidthIntegralType() { this instanceof TFixedWidthIntegralType }
8080
}
8181

82+
abstract private class TMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
83+
8284
/**
8385
* A C/C++ minimum-width numeric type, such as `int_least8_t`.
8486
*/
85-
abstract private class TMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
86-
8787
class MinimumWidthIntegralType extends TMinimumWidthIntegralType {
8888
MinimumWidthIntegralType() { this instanceof TMinimumWidthIntegralType }
8989
}
9090

91+
abstract private class TFastestMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
92+
9193
/**
9294
* A C/C++ minimum-width numeric type, representing the fastest integer type with a
9395
* width of at least `N` such as `int_fast8_t`.
9496
*/
95-
abstract private class TFastestMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
96-
9797
class FastestMinimumWidthIntegralType extends TFastestMinimumWidthIntegralType {
9898
FastestMinimumWidthIntegralType() { this instanceof TFastestMinimumWidthIntegralType }
9999
}
100100

101+
abstract private class TMaximumWidthIntegralType extends IntegralUnderlyingUserType { }
102+
101103
/**
102104
* A C/C++ maximum-width numeric type, either `intmax_t` or `uintmax_t`.
103105
*/
104-
abstract private class TMaximumWidthIntegralType extends IntegralUnderlyingUserType { }
105-
106106
class MaximumWidthIntegralType extends TMaximumWidthIntegralType {
107107
MaximumWidthIntegralType() { this instanceof TMaximumWidthIntegralType }
108108
}

0 commit comments

Comments
 (0)