Summary: | extern "C" Bug in classview-part | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Robert Gruber <rgruber> |
Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdevelop-devel, roberto |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | see my post above from 05.01.2005 |
Description
Robert Gruber
2004-12-11 17:32:33 UTC
Hi, I've hacked into cpp-parser the last three days an I think I've found both the problem an a possible solution for my bugreport. It seams that this happens (lib/cppparser/parser.cpp): *) parseLinkageSpecification() creates a LinkageBodyAST object and stores the declarations (which are declared inside the extern "C") in it *) parseLinkageSpecification() then saves the created object as linkageBody and returns *) back in parseTranslationUnit() the parsers continues with the next declaration To me it looks like nowhere anything is done with the declarations stored in the linkageBody. They are lost! I did a small patch to the parseTranslationUnit() function which worked well with my test projects. I've attached the output of "cvs diff" to this bug (http://bugs.kde.org/show_bug.cgi?id=94933). Could anybody who really knows what is happening inside the cpp-parser please review this patch and contact me!? Greets, Robert --- Robert Gruber -=- rgruber (-a-) users.sourceforge.net Created attachment 8935 [details]
see my post above from 05.01.2005
Roberto, any chance you could offer some insight? Quite old bug. I don't know the C++ parser in kdev3, but the patch looks ok to me. Anybody has some objections against comitting this? works in kdevelop4. 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 |