forked from qt-creator/qt-creator
Beautifier: Fix clang-format's custom style handling
Instead of dealing with clang-format's YAML format use proper command line parameters. Task-number: QTCREATORBUG-15604 Change-Id: Ie0b22aff105c8d208d30e2e945b0036b0b8606c1 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -119,6 +119,7 @@ FormatTask format(FormatTask task)
|
||||
case Command::PipeProcessing: {
|
||||
QProcess process;
|
||||
QStringList options = task.command.options();
|
||||
options.replaceInStrings(QLatin1String("%filename"), QFileInfo(task.filePath).fileName());
|
||||
options.replaceInStrings(QLatin1String("%file"), task.filePath);
|
||||
process.start(executable, options);
|
||||
if (!process.waitForStarted(3000)) {
|
||||
|
||||
Reference in New Issue
Block a user