forked from qt-creator/qt-creator
Fix CMakeFormatter
CMakeFormatter was executed on the file on disk before save, which messed things completely up (PipeProcessing seems to expect the file on disk already to be saved) Change-Id: Idc7b475b5cddeaba4dc7bcc1b7899d73b2692310 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -44,7 +44,8 @@ Command CMakeFormatter::command() const
|
||||
{
|
||||
Command command;
|
||||
command.setExecutable(CMakeFormatterSettings::instance()->command().toString());
|
||||
command.setProcessing(Command::PipeProcessing);
|
||||
command.setProcessing(Command::FileProcessing);
|
||||
command.addOption("--in-place");
|
||||
command.addOption("%file");
|
||||
return command;
|
||||
}
|
||||
|
Reference in New Issue
Block a user