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

Milian Wolff mail at
Sat Jul 24 17:56:46 UTC 2010

Hey there,

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

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the KDevelop-devel mailing list