Skip to content

Commit 7b5797f

Browse files
authored
Merge branch 'main' into Remove-unneeded-MakeResourceDir
2 parents 48d3824 + e5a3480 commit 7b5797f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

lib/CppInterOp/CXCppInterOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

443443
CXQualType clang_getComplexType(CXQualType eltype) {

lib/CppInterOp/Compatibility.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,6 @@ class SynthesizingCodeRAII {
393393

394394
namespace 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
403398
template <typename T> inline T convertTo(cling::Value V) {

lib/CppInterOp/CppInterOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

17351735
TCppType_t GetCanonicalType(TCppType_t type) {

0 commit comments

Comments
 (0)