Bug 357347

Summary: KDevelop can't parse K&R function definitions
Product: [Applications] kdevelop Reporter: Sarah Day <sarahday>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.7.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sarah Day 2015-12-30 16:55:39 UTC
When the C parser tries to parse K&R style function declarations it fails giving an "Unexpected token 'identifier'" error. You can see an example of this by loading this file into KDevelop:

https://github.com/krb5/krb5/blob/master/src/lib/gssapi/mechglue/g_inq_cred.c
Comment 1 Milian Wolff 2015-12-31 14:03:13 UTC
Hello!

We are working on a new clang-based C/C++ language plugin for KDevelop 5 which
supersedes the old C++ plugin in KDevelop 4. See e.g.:
https://www.kdevelop.org/news/first-beta-release-kdevelop-500-available

Due to a lack of manpower, we cannot fix bugs in the old C++ plugin. We rather
want to supply a good Clang based C++ experience for KDevelop 5 than wasting
our time on the legacy C++ support for KDevelop 4.

With the new clang-based C/C++ language plugin, the bug presented here does not
occur in my testing. For these reasons, I'll close this bug. Please stay tuned
for KDevelop 5.

If you think this bug is applicable to Clang/KDevelop 5, please reopen the
report and add new information on how to reproduce the bug there.

Sorry for the inconvenience, I hope you understand the reasoning above.

Cheers
Comment 2 Sarah Day 2016-01-28 16:21:00 UTC
That's fine! I just pulled the KDevelop beta from Fedora Rawhide and it works :) Thanks for your help!