Bug 71689 - Certain C syntax puts parser in loop
Summary: Certain C syntax puts parser in loop
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 19:15 UTC by Jon Smirl
Modified: 2013-03-31 00:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Smirl 2004-01-02 19:15:10 UTC
Version:           CVS (using KDE Devel)
Installed from:    Compiled sources

I had this code in a file that I tried to add to a project:

#define LRMI_CONCAT2(a, b) 	a ## b
#define LRMI_CONCAT(a, b) 	LRMI_CONCAT2(a, b)
#define LRMI_MAKENAME(a) 	LRMI_CONCAT(LRMI_PREFIX, a)


Adding the file locks kdevelop in a loop. I suspect the parser is having touble with 'a ## b'.

I wish the parser could just be taught C instead of treating C like C++.
Comment 1 Matt Rogers 2004-10-27 03:53:21 UTC
I can't reproduce this anymore with KDevelop from CVS (2004-10-26). I took the source code from the bug report, put it in a file, and then added that file to my project, and kdevelop didn't hang. 

Thanks for the bug report.
Comment 2 Aleix Pol 2013-03-31 00:51:50 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