forked from qt-creator/qt-creator
CommandLine: implement debug streaming operator
Change-Id: I09a47d70d5bea315efa1af505f7afc69c8075310 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -34,6 +34,12 @@
|
||||
#include <QRegularExpression>
|
||||
#include <QStack>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
QDebug operator<<(QDebug dbg, const Utils::CommandLine &cmd)
|
||||
{
|
||||
return dbg << cmd.toUserOutput();
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
// The main state of the Unix shell parser
|
||||
enum MxQuoting { MxBasic, MxSingleQuote, MxDoubleQuote, MxParen, MxSubst, MxGroup, MxMath };
|
||||
|
@@ -171,4 +171,8 @@ private:
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
QTCREATOR_UTILS_EXPORT QDebug operator<<(QDebug dbg, const Utils::CommandLine &cmd);
|
||||
QT_END_NAMESPACE
|
||||
|
||||
Q_DECLARE_METATYPE(Utils::CommandLine)
|
||||
|
Reference in New Issue
Block a user