Commit 8eee8476 authored by Adam Strzelecki's avatar Adam Strzelecki Committed by David Schulz

Beautifier: Add -assume-filename to clang-format

Otherwise -style=file will be unusable, since clang-format needs to know
original file path in order to resolve .clang-format file location.

Change-Id: I0581cbcdf5770eed98179fe37d5517f648d7b826
Reviewed-by: default avatarLorenz Haas <lykurg@gmail.com>
Reviewed-by: default avatarPrzemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 22d4cdab
......@@ -145,6 +145,7 @@ Command ClangFormat::command(int offset, int length) const
command.addOption(QLatin1String("-offset=") + QString::number(offset));
command.addOption(QLatin1String("-length=") + QString::number(length));
}
command.addOption(QLatin1String("-assume-filename=%file"));
return command;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment