[Bug 60512] Syntax parser can be fooled by #defines

Dominik Haumann dhdev at gmx.de
Tue Feb 8 17:03:07 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=60512         




------- Additional Comments From dhdev gmx de  2005-02-08 17:01 -------
Another example is wxWidgets. It heavily uses macros, for instance to declare the event table, or the app etc. (very MFCish way). KDevelop even has wxWidgets templates, but isn't able to parse them correctly.

<Example: dlg.h>
// include wxWidgets includes
class DlgAbout : public wxDialog
{
public:
    CDlgAbout( wxWindow *pParent );
    ~CDlgAbout();
private:
    DECLARE_EVENT_TABLE() // XXX
};
</Example>

The line marked with XXX always gives an error with the result, that the whole class does not appear in the class view, which makes KDevelop almost unusable with wxWidgets. It seems KDevelop wants a semi-colon ';', but if I add it I cannot compile anymore.




More information about the KDevelop-devel mailing list