forked from qt-creator/qt-creator
ClangSupport: Use simpler structures in some cases
The patch is mostly mechanical, but contains also a few spurious changes from values references for some local variables, foreach -> ranged for etc that I coulnd't resist. Change-Id: I58f0bd972546895eb318607cbfbd7ac35caf3f23 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -31,26 +31,22 @@
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
namespace {
|
||||
|
||||
Utf8String quotedArguments(const Utf8StringVector &arguments)
|
||||
static Utf8String quotedArguments(const Utf8StringVector &arguments)
|
||||
{
|
||||
const Utf8String quote = Utf8String::fromUtf8("\"");
|
||||
const Utf8String joined = arguments.join(quote + Utf8String::fromUtf8(" ") + quote);
|
||||
return quote + joined + quote;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug debug, const ProjectPartContainer &container)
|
||||
{
|
||||
const Utf8String arguments = quotedArguments(container.arguments());
|
||||
const Utf8String arguments = quotedArguments(container.arguments);
|
||||
const Utf8String fileWithArguments = debugWriteFileForInspection(
|
||||
arguments,
|
||||
Utf8StringLiteral("projectpartargs-"));
|
||||
|
||||
debug.nospace() << "ProjectPartContainer("
|
||||
<< container.projectPartId()
|
||||
<< container.projectPartId
|
||||
<< ","
|
||||
<< "<" << fileWithArguments << ">"
|
||||
<< ")";
|
||||
|
||||
Reference in New Issue
Block a user