diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-09-15 17:52:31 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-09-16 07:31:22 +0000 |
commit | 6abebbbe35bae3b0c7a66efdfdecf845b532594a (patch) | |
tree | 7d7bec729fcc4dc1fdc595a6e286ea386018e403 /src/libs/3rdparty/cplusplus/Symbols.cpp | |
parent | cc7d757a3ad3e99e672ef0c21a099666c022f621 (diff) |
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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Symbols.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Symbols.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libs/3rdparty/cplusplus/Symbols.cpp b/src/libs/3rdparty/cplusplus/Symbols.cpp index ba12ea22c2..05b5f59793 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<Class *>(this)); } -const Name *Class::prettyName() const -{ - return _canonicalTypedefName ? _canonicalTypedefName : name(); -} - void Class::visitSymbol0(SymbolVisitor *visitor) { if (visitor->visit(this)) { |