Tokenizer: handle DECLARE_DYNAMIC. Ticket: #1956
This commit is contained in:
parent
7173e01926
commit
9c594684db
|
@ -8037,6 +8037,13 @@ void Tokenizer::simplifyBuiltinExpect()
|
|||
tok->deleteNext();
|
||||
tok->deleteNext();
|
||||
}
|
||||
else if (Token::Match(tok->next(), "DECLARE_DYNAMIC ( %any% )"))
|
||||
{
|
||||
tok->deleteNext();
|
||||
tok->deleteNext();
|
||||
tok->deleteNext();
|
||||
tok->deleteNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4376,6 +4376,9 @@ private:
|
|||
{
|
||||
const char code1[] = "class MyDialog : public CDialog { DECLARE_MESSAGE_MAP() private: CString text; };";
|
||||
ASSERT_EQUALS("class MyDialog : public CDialog { private: CString text ; } ;", tokenizeAndStringify(code1,false));
|
||||
|
||||
const char code2[] = "class MyDialog : public CDialog { DECLARE_DYNAMIC(MyDialog) private: CString text; };";
|
||||
ASSERT_EQUALS("class MyDialog : public CDialog { private: CString text ; } ;", tokenizeAndStringify(code2,false));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue