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:
Xavier BESSON
2022-12-15 21:37:29 +01:00
parent 5eeef19743
commit 676a4c1ee3

View File

@@ -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;
}