forked from qt-creator/qt-creator
Utils: Encourage marking of raw command line parameters
Change-Id: Id66ac07732c66ab8c1232fe1f58042de8a61abb0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -131,15 +131,17 @@ using FileNameList = FilePathList;
|
||||
class QTCREATOR_UTILS_EXPORT CommandLine
|
||||
{
|
||||
public:
|
||||
CommandLine() {}
|
||||
enum RawType { Raw };
|
||||
|
||||
CommandLine(const FilePath &executable, const QString &arguments)
|
||||
: m_executable(executable), m_arguments(arguments)
|
||||
{}
|
||||
CommandLine() {}
|
||||
explicit CommandLine(const FilePath &executable);
|
||||
CommandLine(const FilePath &exe, const QStringList &args);
|
||||
CommandLine(const FilePath &exe, const QString &unparsedArgs, RawType);
|
||||
|
||||
void addArg(const QString &arg, OsType osType = HostOsInfo::hostOs());
|
||||
void addArgs(const QStringList &inArgs, OsType osType = HostOsInfo::hostOs());
|
||||
void addArgs(const QString &inArgs);
|
||||
|
||||
void addArgs(const QString &inArgs, RawType);
|
||||
|
||||
QString toUserOutput() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user