Commit b105917b authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Quote project part arguments for easier debugging

Now we can copy paste to the shell and make tests there more easily.

Change-Id: Ic17ea23c4040583ba3af9e60ae73b242a574ab9b
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 4eafa2e0
......@@ -82,12 +82,19 @@ bool operator<(const ProjectPartContainer &first, const ProjectPartContainer &se
return first.projectPartId_ < second.projectPartId_;
}
static Utf8String quotedArguments(const Utf8StringVector &arguments)
{
const Utf8String quote = Utf8String::fromUtf8("\"");
const Utf8String joined = arguments.join(quote + QString::fromUtf8(" ") + quote);
return quote + joined + quote;
}
QDebug operator<<(QDebug debug, const ProjectPartContainer &container)
{
debug.nospace() << "ProjectPartContainer("
<< container.projectPartId()
<< ","
<< container.arguments()
<< quotedArguments(container.arguments())
<< ")";
return debug;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment