File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,8 +123,13 @@ bool Converter::VisitBuiltinType(clang::BuiltinType *type) {
123123 StrCat (" f64" );
124124 break ;
125125 case clang::BuiltinType::Char_S:
126- case clang::BuiltinType::UChar:
126+ case clang::BuiltinType::Char_U:
127+ StrCat (" ::core::ffi::c_char" );
128+ break ;
127129 case clang::BuiltinType::SChar:
130+ StrCat (" i8" );
131+ break ;
132+ case clang::BuiltinType::UChar:
128133 StrCat (" u8" );
129134 break ;
130135 case clang::BuiltinType::UShort:
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ void addBuiltinTypes(Model model) {
524524 }
525525
526526 // Char
527- add_builtin_rule (ctx_->CharTy , " u8 " );
527+ add_builtin_rule (ctx_->CharTy , " ::core::ffi::c_char " );
528528 add_builtin_rule (ctx_->SignedCharTy , " i8" );
529529 add_builtin_rule (ctx_->UnsignedCharTy , " u8" );
530530
You can’t perform that action at this time.
0 commit comments