forked from qt-creator/qt-creator
Preprocessor: Handle variadic arguments (__VA_ARGS__).
Change-Id: I69aa6c5e01ea97a4413f77f20ebbb4d4beb971aa Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
f0b122e3d2
commit
ffd58c577a
@@ -78,7 +78,8 @@ QString Macro::decoratedName() const
|
||||
text += QLatin1String(", ");
|
||||
else
|
||||
first = false;
|
||||
text += QString::fromUtf8(formal.constData(), formal.size());
|
||||
if (formal != "__VA_ARGS__")
|
||||
text += QString::fromUtf8(formal.constData(), formal.size());
|
||||
}
|
||||
if (f._variadic)
|
||||
text += QLatin1String("...");
|
||||
|
||||
Reference in New Issue
Block a user