why compare indexedTypes in Cpp::stripType(AbstractType::Ptr, DUContext*) ?
Milian Wolff
mail at milianw.de
Wed Mar 2 17:11:52 UTC 2011
Hey David,
can you tell me why this conditional contains the indexedType comparison?
if(decls[0]->kind() != Declaration::Type || decls[0]->indexedType() != type-
>indexed())
this breaks cases where you want to strip const Foo::Bar::Asdf& because:
a) the incoming type is "const Foo::Bar::Asdf" (baseType of the reference)
b) we look for a declaration, hence find e..g the class "Foo::Bar::Asdf"
(note: no const!)
bye
--
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- 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: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110302/788375ad/attachment.sig>
More information about the KDevelop-devel
mailing list