Fixed #4855 (GUI: The checking of the file will be interrupted because there are too many #ifdef configurations.)

This commit is contained in:
Daniel Marjamäki 2013-06-18 14:14:33 +02:00
parent 050a25f782
commit 02fbf15557
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,10 @@ Settings MainWindow::GetCppcheckSettings()
result.userDefines += ";"; result.userDefines += ";";
result.userDefines += define.toStdString(); result.userDefines += define.toStdString();
} }
// Only check the given -D configuration
if (!defines.isEmpty())
result._maxConfigs = 1;
} }
// Include directories (and files) are searched in listed order. // Include directories (and files) are searched in listed order.