Skip to content

Commit a6947e0

Browse files
author
Matthew Gretton-Dann
committed
C++: Complete support for char8_t
1 parent c0d0f78 commit a6947e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ private predicate integralTypeMapping(int original, int canonical, int unsigned,
465465
original = 43 and canonical = 43 and unsigned = -1 and signed = -1 // char16_t
466466
or
467467
original = 44 and canonical = 44 and unsigned = -1 and signed = -1 // char32_t
468+
or
469+
original = 51 and canonical = 51 and unsigned = -1 and signed = -1 // char8_t
468470
}
469471

470472
/**

cpp/ql/src/semmle/code/cpp/padding/Padding.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ abstract class Architecture extends string {
157157
or
158158
t instanceof WideCharType and result = wideCharSize()
159159
or
160+
t instanceof Char8Type and result = 8
161+
or
160162
t instanceof Char16Type and result = 16
161163
or
162164
t instanceof Char32Type and result = 32

0 commit comments

Comments
 (0)