Function pointers
David Nolden
david.nolden.kdevelop at art-master.de
Sat Sep 5 23:36:32 UTC 2009
Am Sonntag 06 September 2009 00:43:16 schrieb Christoph Bartoschek:
> Hi,
>
> the current trunk crashes because function pointers are not handled
> correctly. The attached patches prevent the crash, but they do not
> implement support for function pointers.
>
> The first patch functiontype.patch adds an assertion to
> FunctionDeclaration::setAbstractType to prevent later a crash in
> toString().
I guess the better way would be turning that assertion back into a warning,
and turning the other assertion a warning as well instead. C++ is very
complex, and we never know what kind of strange code we will still be facing,
so it's always better not to crash..
Greetings, David
More information about the KDevelop-devel
mailing list