forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.7'
Conflicts: src/plugins/qmldesigner/components/formeditor/abstractcustomtool.cpp Change-Id: I4e0a85795e7f4bfcdc21d106517517b527f85104
This commit is contained in:
@@ -1001,6 +1001,8 @@ bool Preprocessor::handleIdentifier(PPToken *tk)
|
||||
bool hasMatchingArgs = false;
|
||||
if (hasArgs) {
|
||||
const int expectedArgCount = macro->formals().size();
|
||||
if (macro->isVariadic() && allArgTks.size() == expectedArgCount - 1)
|
||||
allArgTks.push_back(QVector<PPToken>());
|
||||
const int actualArgCount = allArgTks.size();
|
||||
if (expectedArgCount == actualArgCount
|
||||
|| (macro->isVariadic() && actualArgCount > expectedArgCount - 1)
|
||||
|
||||
Reference in New Issue
Block a user