Skip to content

Commit a18ca01

Browse files
Swatinemkhuey
authored andcommitted
fix: Add support for builtin char8_t type
1 parent c621a89 commit a18ca01

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4011,6 +4011,7 @@ define_vocabulary! {
40114011
/// ::= Dh # IEEE 754r half-precision floating point (16 bits)
40124012
/// ::= Di # char32_t
40134013
/// ::= Ds # char16_t
4014+
/// ::= Du # char8_t
40144015
/// ::= Da # auto
40154016
/// ::= Dc # decltype(auto)
40164017
/// ::= Dn # std::nullptr_t (i.e., decltype(nullptr))
@@ -4044,6 +4045,7 @@ define_vocabulary! {
40444045
DecimalFloat16 (b"Dh", "half"),
40454046
Char32 (b"Di", "char32_t"),
40464047
Char16 (b"Ds", "char16_t"),
4048+
Char8 (b"Du", "char8_t"),
40474049
Auto (b"Da", "auto"),
40484050
Decltype (b"Dc", "decltype(auto)"),
40494051
Nullptr (b"Dn", "std::nullptr_t")

tests/tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,3 +573,7 @@ demangles!(
573573
"___ZN6WebKit23ApplicationStateTrackerC2EP6UIViewP13objc_selectorS4_S4__block_invoke.19",
574574
"invocation function for block in WebKit::ApplicationStateTracker::ApplicationStateTracker(UIView*, objc_selector*, objc_selector*, objc_selector*)"
575575
);
576+
demangles!(
577+
_ZNKSt6__ndk112basic_stringIDuNS_11char_traitsIDuEENS_9allocatorIDuEEE5c_strEv,
578+
"std::__ndk1::basic_string<char8_t, std::__ndk1::char_traits<char8_t>, std::__ndk1::allocator<char8_t> >::c_str() const"
579+
);

0 commit comments

Comments
 (0)