From 6abebbbe35bae3b0c7a66efdfdecf845b532594a Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 15 Sep 2022 17:52:31 +0200 Subject: CppEditor: Remove extra CPlusPlus::Class member Amends 0fab5956ea91dc0ee40b4d99605ec26a3720c5c8. We want to avoid carrying these eight bytes ber Class instance around. Instead, we now just replace the (anonymous) struct name with the typedef'ed one. Note that in C (but not C++), this is possible: struct S {}; typedef struct {} S; struct S s1; S s2; However, our code model has never respected the extra struct namespace, so it can already not distinguish between occurrences of "S" and "struct S". Change-Id: I55feafea7d3a4a5848e10f7011f633a2ce0f626e Reviewed-by: Reviewed-by: Christian Stenger --- src/libs/3rdparty/cplusplus/Symbols.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/libs/3rdparty/cplusplus/Symbols.cpp') diff --git a/src/libs/3rdparty/cplusplus/Symbols.cpp b/src/libs/3rdparty/cplusplus/Symbols.cpp index ba12ea22c2a..05b5f597937 100644 --- a/src/libs/3rdparty/cplusplus/Symbols.cpp +++ b/src/libs/3rdparty/cplusplus/Symbols.cpp @@ -635,11 +635,6 @@ void Class::addBaseClass(BaseClass *baseClass) FullySpecifiedType Class::type() const { return FullySpecifiedType(const_cast(this)); } -const Name *Class::prettyName() const -{ - return _canonicalTypedefName ? _canonicalTypedefName : name(); -} - void Class::visitSymbol0(SymbolVisitor *visitor) { if (visitor->visit(this)) { -- cgit v1.2.3