File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ CXString clang_getTypeAsString(CXQualType type) {
437437 clang::PrintingPolicy Policy = C.getPrintingPolicy ();
438438 Policy.Bool = true ; // Print bool instead of _Bool.
439439 Policy.SuppressTagKeyword = true ; // Do not print `class std::string`.
440- return makeCXString (compat::FixTypeName ( QT.getAsString (Policy) ));
440+ return makeCXString (QT.getAsString (Policy));
441441}
442442
443443CXQualType clang_getComplexType (CXQualType eltype) {
Original file line number Diff line number Diff line change @@ -393,11 +393,6 @@ class SynthesizingCodeRAII {
393393
394394namespace compat {
395395
396- // Clang >= 14 change type name to string (spaces formatting problem)
397- inline std::string FixTypeName (const std::string type_name) {
398- return type_name;
399- }
400-
401396// Clang >= 16 (=16 with Value patch) change castAs to convertTo
402397#ifdef CPPINTEROP_USE_CLING
403398template <typename T> inline T convertTo (cling::Value V) {
Original file line number Diff line number Diff line change @@ -1729,7 +1729,7 @@ std::string GetTypeAsString(TCppType_t var) {
17291729 Policy.SuppressTagKeyword = true ; // Do not print `class std::string`.
17301730 Policy.SuppressElaboration = true ;
17311731 Policy.FullyQualifiedName = true ;
1732- return compat::FixTypeName ( QT.getAsString (Policy) );
1732+ return QT.getAsString (Policy);
17331733}
17341734
17351735TCppType_t GetCanonicalType (TCppType_t type) {
You can’t perform that action at this time.
0 commit comments