Skip some C++-specific simplifications in Tokenizer

This commit is contained in:
amai2012 2015-06-15 19:42:20 +02:00
parent 2cc23b4bb3
commit 227b48212e
1 changed files with 6 additions and 0 deletions

View File

@ -2036,6 +2036,8 @@ void Tokenizer::simplifySQL()
void Tokenizer::simplifyDebugNew()
{
if (isC())
return;
if (!_settings->isWindowsPlatform())
return;
@ -9692,6 +9694,8 @@ void Tokenizer::simplifyNamespaceStd()
// Remove Microsoft MFC 'DECLARE_MESSAGE_MAP()'
void Tokenizer::simplifyMicrosoftMFC()
{
if (isC())
return;
// skip if not Windows
if (!_settings->isWindowsPlatform())
return;
@ -9886,6 +9890,8 @@ void Tokenizer::simplifyBorland()
// Remove Qt signals and slots
void Tokenizer::simplifyQtSignalsSlots()
{
if (isC())
return;
for (Token *tok = list.front(); tok; tok = tok->next()) {
// check for emit which can be outside of class
if (Token::Match(tok, "emit|Q_EMIT %name% (") &&