File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,13 +119,13 @@ std::string Converter::ConvertPointeeType(clang::QualType ptr_type) {
119119 assert (!ptr_type.isNull () && ptr_type->isPointerType ());
120120 auto pointee = ptr_type->getPointeeType ();
121121 if (!pointee->isRecordType ()) {
122- return ToString (pointee);
122+ return std::string ( Trim ( ToString (pointee)) );
123123 }
124124
125125 auto str = ToString (ptr_type);
126126 Unwrap (str, " *mut " , " " );
127127 Unwrap (str, " *const " , " " );
128- return str;
128+ return std::string ( Trim ( str)) ;
129129}
130130
131131bool Converter::VisitBuiltinType (clang::BuiltinType *type) {
Original file line number Diff line number Diff line change @@ -2584,7 +2584,7 @@ std::string ConverterRefCount::ConvertPointeeType(clang::QualType ptr_type) {
25842584 PushConversionKind push (*this , ConversionKind::Unboxed);
25852585 auto pointee = ptr_type->getPointeeType ();
25862586 if (!pointee->isRecordType ()) {
2587- return ToString (pointee);
2587+ return std::string ( Trim ( ToString (pointee)) );
25882588 }
25892589
25902590 // Pointee of a pointer to incomplete type is an incomplete type that does
@@ -2593,7 +2593,7 @@ std::string ConverterRefCount::ConvertPointeeType(clang::QualType ptr_type) {
25932593 auto str = ToString (ptr_type);
25942594 Unwrap (str, " PtrDyn<" , " >" );
25952595 Unwrap (str, " Ptr<" , " >" );
2596- return str;
2596+ return std::string ( Trim ( str)) ;
25972597}
25982598
25992599bool ConverterRefCount::ShouldConvertMethod (const clang::CXXMethodDecl *decl) {
You can’t perform that action at this time.
0 commit comments