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");
|
||||
if (function.gccPure)
|
||||
xmlWriter.writeEmptyElement("pure");
|
||||
if (function.noreturn != CppcheckLibraryData::Function::Unknown)
|
||||
xmlWriter.writeTextElement("noreturn", (function.noreturn == CppcheckLibraryData::Function::True) ? "true" : "false");
|
||||
if (!function.returnValue.empty()) {
|
||||
xmlWriter.writeStartElement("returnValue");
|
||||
if (!function.returnValue.type.isNull())
|
||||
|
@ -339,6 +337,8 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData
|
|||
xmlWriter.writeCharacters(function.returnValue.value);
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
if (function.noreturn != CppcheckLibraryData::Function::Unknown)
|
||||
xmlWriter.writeTextElement("noreturn", (function.noreturn == CppcheckLibraryData::Function::True) ? "true" : "false");
|
||||
if (function.leakignore)
|
||||
xmlWriter.writeEmptyElement("leak-ignore");
|
||||
// Argument info..
|
||||
|
|
Loading…
Reference in New Issue