Bug 253650 - Please use Clang for parsing C++.
Summary: Please use Clang for parsing C++.
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: 4.0.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: 4.1.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 12:39 UTC by Johannes Schaub
Modified: 2013-11-09 18:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Schaub 2010-10-09 12:39:08 UTC
Version:           4.0.2 (using KDE 4.5.1) 
OS:                Linux

Clang has nice libraries designed for exactly this task, a suitable license and is a full-featured C++ parser without the problems the current parser has on C++ code. Also, it's utterly fast.

Reproducible: Didn't try
Comment 1 Milian Wolff 2010-10-09 12:55:59 UTC
until someone comes up with a patch nothing will be done in this regard. closing
Comment 2 vanboxem.ruben 2011-12-13 19:15:13 UTC
Closing this bug is like saying "we don't want a new feature". There's a "severity" setting that says "Enhancement", which is ideal in this situation.
Comment 3 Milian Wolff 2011-12-15 14:17:06 UTC
yes and no. don't get me wrong, I'd like to see us reusing a library for c++ parsing, but this is simply not doable right now [1] and thus this "feature request" is just clogging our bug tracker. If someone wants to work on it, he can do it - but it is certainly not a "feature request", as it is purely background work.

[1]: clang libraries are not shipped on most major distributions yet, so we cannot depend on it. I'm also not sure if there is any abi/api stability promise from the clang project yet. 

ps: while clang is "probably" a good choice in the future, please don't forget that kdevelop is a multilanguage ide which it achieves through the DUChain. Hence while running clang on a few files might be easy to achieve, see e.g. [2], it is still missing out of most plugins and integration (lots of features in code completion, assistants, code browsing, class browser, ...).

[2]: http://gitorious.org/kdevelop-clang
Comment 4 Aleix Pol 2013-03-31 00:54:41 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively
Comment 5 David Heidelberg 2013-11-09 18:45:07 UTC
http://www.youtube.com/watch?v=FbZ_0r4eFfo

well, there is existing (experimental) repository.