[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 60512] Syntax parser can be fooled by #defines
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-02-08 16:01:18
Message-ID: 20050208160118.32494.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic