Skip some C++-specific simplifications in Tokenizer
This commit is contained in:
parent
2cc23b4bb3
commit
227b48212e
|
@ -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% (") &&
|
||||
|
|
Loading…
Reference in New Issue