Identifier / IndexedIdentifier of anonymous structs !isEmpty() but .toString().isEmpty()

David Nolden zwabel at
Sat Jul 24 20:41:17 UTC 2010

This is no bug. Anonymous structs have an additional integer stored in their
identifier as identity (called something with "unique").

Am 24.07.2010 19:58 schrieb "Milian Wolff" <mail at>:

Hey there,

just encountered a strange bug: The identifier/indexedIdentifier for
structs return false on .isEmpty(), but .toString().isEmpty() returns

but this works as expected:

 Identifier nullIdentifier;
 qDebug() << nullIdentifier.isEmpty() <<
 Identifier emptyIdentifier("");
 qDebug() << emptyIdentifier.isEmpty() <<

all true...

Should I add a Q_EXPECT_FAIL unit test for the former? Imo this should not

Anyhow, I'll now filter the anon structs during code completion somehow
Milian Wolff
mail at

KDevelop-devel mailing list
KDevelop-devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list