Skip to content

Commit f174d7a

Browse files
committed
Comment changes
1 parent 14c419a commit f174d7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,28 @@ class Ptrdiff_t extends Type {
6464
}
6565

6666
/**
67-
* A common base type for describing the C/C++ fixed-width numeric types
67+
* A C/C++ fixed-width numeric type, such as `int8_t`.
6868
*/
6969
abstract class FixedWidthIntegralType extends UserType {
7070
FixedWidthIntegralType() { this.getUnderlyingType() instanceof IntegralType }
7171
}
7272

7373
/**
74-
* A common base type for describing the C/C++ minimum-width numeric types.
74+
* A C/C++ minimum-width numeric type, such as `int_least8_t` or `uint_fast16_t`.
7575
*/
7676
abstract class MinimumWidthIntegralType extends UserType {
7777
MinimumWidthIntegralType() { this.getUnderlyingType() instanceof IntegralType }
7878
}
7979

8080
/**
81-
* A common base type for describing the C/C++ maximum-width numeric types.
81+
* A C/C++ maximum-width numeric type, either `intmax_t` or `uintmax_t`.
8282
*/
8383
abstract class MaximumWidthIntegralType extends UserType {
8484
MaximumWidthIntegralType() { this.getUnderlyingType() instanceof IntegralType }
8585
}
8686

8787
/**
88-
* A common base type for describing enum types that are based on fixed-width types.
88+
* An enum type based on a fixed-width integer type. For instance, `enum e: uint8_t = { a, b };`
8989
*/
9090
class FixedWidthEnumType extends UserType {
9191
FixedWidthEnumType() { this.(Enum).getExplicitUnderlyingType() instanceof FixedWidthIntegralType }

0 commit comments

Comments
 (0)