dpp icon indicating copy to clipboard operation
dpp copied to clipboard

Trying to convert a big c++ library

Open trikko opened this issue 5 years ago • 2 comments

Dpp gives just a few error, related to std library apparently. It seems that operator""s issue is still there ( related: https://github.com/atilaneves/dpp/issues/101 )

Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "numeric_limits", Type(Unexposed, "numeric_limits<const type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/limits", 363:3, 365:37) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(CXXBaseSpecifier, "numeric_limits<_Tp>", Type(Unexposed, "numeric_limits<_Tp>"))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "numeric_limits", Type(Unexposed, "numeric_limits<volatile type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/limits", 367:3, 369:37) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(CXXBaseSpecifier, "numeric_limits<_Tp>", Type(Unexposed, "numeric_limits<_Tp>"))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "numeric_limits", Type(Unexposed, "numeric_limits<const volatile type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/limits", 371:3, 373:37) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(CXXBaseSpecifier, "numeric_limits<_Tp>", Type(Unexposed, "numeric_limits<_Tp>"))]


Untranslatable cursor Cursor(FunctionDecl, "operator""s", Type(FunctionProto, "basic_string<char> (const char *, std::size_t)"), Type(Unexposed, "basic_string<char>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h", 6663:5, 6666:49) children: [Cursor(FirstAttr, "", Type(Invalid, "")), Cursor(TemplateRef, "basic_string", Type(Invalid, "")), Cursor(ParmDecl, "__str", Type(Pointer, "const char *, Type(Char_S, "const char")")), Cursor(ParmDecl, "__len", Type(Typedef, "std::size_t")), Cursor(CompoundStmt, "", Type(Invalid, ""))]


Untranslatable cursor Cursor(FunctionDecl, "operator""s", Type(FunctionProto, "basic_string<wchar_t> (const wchar_t *, std::size_t)"), Type(Unexposed, "basic_string<wchar_t>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h", 6669:5, 6672:52) children: [Cursor(FirstAttr, "", Type(Invalid, "")), Cursor(TemplateRef, "basic_string", Type(Invalid, "")), Cursor(ParmDecl, "__str", Type(Pointer, "const wchar_t *, Type(WChar, "const wchar_t")")), Cursor(ParmDecl, "__len", Type(Typedef, "std::size_t")), Cursor(CompoundStmt, "", Type(Invalid, ""))]


Untranslatable cursor Cursor(FunctionDecl, "operator""s", Type(FunctionProto, "basic_string<char16_t> (const char16_t *, std::size_t)"), Type(Unexposed, "basic_string<char16_t>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h", 6676:5, 6679:53) children: [Cursor(FirstAttr, "", Type(Invalid, "")), Cursor(TemplateRef, "basic_string", Type(Invalid, "")), Cursor(ParmDecl, "__str", Type(Pointer, "const char16_t *, Type(Char16, "const char16_t")")), Cursor(ParmDecl, "__len", Type(Typedef, "std::size_t")), Cursor(CompoundStmt, "", Type(Invalid, ""))]


Untranslatable cursor Cursor(FunctionDecl, "operator""s", Type(FunctionProto, "basic_string<char32_t> (const char32_t *, std::size_t)"), Type(Unexposed, "basic_string<char32_t>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/basic_string.h", 6681:5, 6684:53) children: [Cursor(FirstAttr, "", Type(Invalid, "")), Cursor(TemplateRef, "basic_string", Type(Invalid, "")), Cursor(ParmDecl, "__str", Type(Pointer, "const char32_t *, Type(Char32, "const char32_t")")), Cursor(ParmDecl, "__len", Type(Typedef, "std::size_t")), Cursor(CompoundStmt, "", Type(Invalid, ""))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "is_const", Type(Unexposed, "is_const<const type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/type_traits", 658:3, 660:27) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(CXXBaseSpecifier, "std::true_type", Type(Typedef, "std::true_type"))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "is_volatile", Type(Unexposed, "is_volatile<volatile type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/type_traits", 667:3, 669:27) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(CXXBaseSpecifier, "std::true_type", Type(Typedef, "std::true_type"))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "remove_const", Type(Unexposed, "remove_const<const type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/type_traits", 1556:3, 1558:30) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypedefDecl, "type", Type(Typedef, "std::remove_const<const type-parameter-0-0>::type"))]


Untranslatable cursor Cursor(ClassTemplatePartialSpecialization, "remove_volatile", Type(Unexposed, "remove_volatile<volatile type-parameter-0-0>")) sourceRange: SourceRange("/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/type_traits", 1565:3, 1567:30) children: [Cursor(TemplateTypeParameter, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypeRef, "_Tp", Type(Unexposed, "_Tp")), Cursor(TypedefDecl, "type", Type(Typedef, "std::remove_volatile<volatile type-parameter-0-0>::type"))]

trikko avatar Nov 27 '18 09:11 trikko

There's a lot still to with C++. This should have been fixed though, so if you could include more details that would be appreciated.

atilaneves avatar Nov 27 '18 13:11 atilaneves

I was trying to compile many different libraries: that output is referred to wxWidgets (compiled with wxUSE_STL=0).

trikko avatar Nov 30 '18 08:11 trikko