add pure virtual function parsing; give more informative warnings; fix the initial line to delete when in modify mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-03-24 18:44:46 +00:00
parent e4f1d811cc
commit a7be99c803
3 changed files with 93 additions and 37 deletions

View File

@@ -71,7 +71,7 @@ class wxMethod
{
public:
wxMethod()
{ m_bConst=m_bVirtual=m_bStatic=m_bDeprecated=false; m_nLine=-1; }
{ m_bConst=m_bVirtual=m_bPureVirtual=m_bStatic=m_bDeprecated=false; m_nLine=-1; }
wxMethod(const wxType& rettype, const wxString& name,
const wxTypeArray& arguments, const wxArrayString& defaults,
@@ -105,6 +105,8 @@ public: // getters
{ return m_bStatic; }
bool IsVirtual() const
{ return m_bVirtual; }
bool IsPureVirtual() const
{ return m_bPureVirtual; }
bool IsOk() const;
bool IsCtor() const
@@ -129,6 +131,8 @@ public: // setters
{ m_bStatic=c; }
void SetVirtual(bool c = true)
{ m_bVirtual=c; }
void SetPureVirtual(bool c = true)
{ m_bPureVirtual=c; }
void SetDeprecated(bool c = true)
{ m_bDeprecated=c; }
void SetLocation(int lineNumber)
@@ -150,6 +154,7 @@ protected:
bool m_bConst;
bool m_bStatic;
bool m_bVirtual;
bool m_bPureVirtual;
bool m_bDeprecated;
int m_nLine;
};