Skip to content

Commit debb662

Browse files
C++: Reformat comment
1 parent 71a6b5d commit debb662

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cpp/ql/src/semmle/code/cpp/ir/internal/CppType.qll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,10 @@ CppWrappedType getCanonicalBooleanType(int byteSize) {
415415
* Compute the sorting priority of an `IntegralType` based on its signedness.
416416
*/
417417
private int getSignPriority(IntegralType type) {
418-
/*
419-
Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit
420-
signedness sort in between. This lets us always choose `int` over `signed int`, while also
421-
choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when
422-
`char` is unsigned.
423-
*/
418+
// Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit
419+
// signedness sort in between. This lets us always choose `int` over `signed int`, while also
420+
// choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when
421+
// `char` is unsigned.
424422
if type.isExplicitlyUnsigned()
425423
then result = 2
426424
else if type.isExplicitlySigned()

0 commit comments

Comments
 (0)