[Bug 94933] extern "C" Bug in classview-part

Robert Gruber rgruber at users.sourceforge.net
Sun Jan 9 19:17:23 UTC 2005

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
rgruber users sourceforge net changed:

           What    |Removed                     |Added
                 CC|                            |kdevelop-devel kdevelop org

------- Additional Comments From rgruber users sourceforge net  2005-01-05 19:44 -------

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

More information about the KDevelop-devel mailing list