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:
@@ -74,6 +74,22 @@ namespace Utils {
|
||||
|
||||
*/
|
||||
|
||||
CommandLine::CommandLine(const FilePath &executable)
|
||||
: m_executable(executable)
|
||||
{}
|
||||
|
||||
CommandLine::CommandLine(const FilePath &exe, const QStringList &args)
|
||||
: m_executable(exe)
|
||||
{
|
||||
addArgs(args);
|
||||
}
|
||||
|
||||
CommandLine::CommandLine(const FilePath &exe, const QString &args, RawType)
|
||||
: m_executable(exe)
|
||||
{
|
||||
addArgs(args, Raw);
|
||||
}
|
||||
|
||||
void CommandLine::addArg(const QString &arg, OsType osType)
|
||||
{
|
||||
QtcProcess::addArg(&m_arguments, arg, osType);
|
||||
@@ -85,7 +101,7 @@ void CommandLine::addArgs(const QStringList &inArgs, OsType osType)
|
||||
addArg(arg, osType);
|
||||
}
|
||||
|
||||
void CommandLine::addArgs(const QString &inArgs)
|
||||
void CommandLine::addArgs(const QString &inArgs, RawType)
|
||||
{
|
||||
QtcProcess::addArgs(&m_arguments, inArgs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user