GUI: in <function> group the return value elements together
This commit is contained in:
parent
1699775c3c
commit
2be16ed663
|
@ -327,8 +327,6 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData
|
||||||
xmlWriter.writeEmptyElement("const");
|
xmlWriter.writeEmptyElement("const");
|
||||||
if (function.gccPure)
|
if (function.gccPure)
|
||||||
xmlWriter.writeEmptyElement("pure");
|
xmlWriter.writeEmptyElement("pure");
|
||||||
if (function.noreturn != CppcheckLibraryData::Function::Unknown)
|
|
||||||
xmlWriter.writeTextElement("noreturn", (function.noreturn == CppcheckLibraryData::Function::True) ? "true" : "false");
|
|
||||||
if (!function.returnValue.empty()) {
|
if (!function.returnValue.empty()) {
|
||||||
xmlWriter.writeStartElement("returnValue");
|
xmlWriter.writeStartElement("returnValue");
|
||||||
if (!function.returnValue.type.isNull())
|
if (!function.returnValue.type.isNull())
|
||||||
|
@ -339,6 +337,8 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData
|
||||||
xmlWriter.writeCharacters(function.returnValue.value);
|
xmlWriter.writeCharacters(function.returnValue.value);
|
||||||
xmlWriter.writeEndElement();
|
xmlWriter.writeEndElement();
|
||||||
}
|
}
|
||||||
|
if (function.noreturn != CppcheckLibraryData::Function::Unknown)
|
||||||
|
xmlWriter.writeTextElement("noreturn", (function.noreturn == CppcheckLibraryData::Function::True) ? "true" : "false");
|
||||||
if (function.leakignore)
|
if (function.leakignore)
|
||||||
xmlWriter.writeEmptyElement("leak-ignore");
|
xmlWriter.writeEmptyElement("leak-ignore");
|
||||||
// Argument info..
|
// Argument info..
|
||||||
|
|
Loading…
Reference in New Issue