Fixed #4855 (GUI: The checking of the file will be interrupted because there are too many #ifdef configurations.)
This commit is contained in:
parent
050a25f782
commit
02fbf15557
|
@ -529,6 +529,10 @@ Settings MainWindow::GetCppcheckSettings()
|
|||
result.userDefines += ";";
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue