forked from qt-creator/qt-creator
Compile the C++ parser library with Sun CC 5.9.
Things you mustn't do: 1) end an enum with a comma 2) #include <cxxxx> and not use std:: 3) use anonymous structures All three things are invalid C++. Anonymous structures inside anonymous unions are allowed by GCC, but that doesn't mean it's valid.
This commit is contained in:
@@ -60,12 +60,12 @@ Macro::Macro()
|
||||
QString Macro::toString() const
|
||||
{
|
||||
QString text;
|
||||
if (_hidden)
|
||||
if (f._hidden)
|
||||
text += QLatin1String("#undef ");
|
||||
else
|
||||
text += QLatin1String("#define ");
|
||||
text += QString::fromUtf8(_name.constData(), _name.size());
|
||||
if (_functionLike) {
|
||||
if (f._functionLike) {
|
||||
text += QLatin1Char('(');
|
||||
bool first = true;
|
||||
foreach (const QByteArray formal, _formals) {
|
||||
@@ -75,7 +75,7 @@ QString Macro::toString() const
|
||||
first = false;
|
||||
text += QString::fromUtf8(formal.constData(), formal.size());
|
||||
}
|
||||
if (_variadic)
|
||||
if (f._variadic)
|
||||
text += QLatin1String("...");
|
||||
text += QLatin1Char(')');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user