Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
472 stars 57 forks source link

No clang-format after clang-tidy #1287

Closed Holo-Duke closed 1 year ago

Holo-Duke commented 1 year ago

Hello,

I'm using CPT 2023.5.0 with LLVM 16.0.0 and after clang-tidy did it's work the code is not formatted by clang-format. I've set FormatStyle: 'file' in the .clang-tidy file and also Style 'file' and Format after Tidy: On as well as 1-step-tidy-fix: On in the UI settings. It seems as if the fixes are exported via --export-fixes but when they are applied via clang-apply-replacements.exe there is no --format switch on the command line. Found out that even if the --help of clang-apply-replacements.exe says different, I had to specify --style=file along with --format on the command line as well to get the code properly formatted.

mariru27 commented 1 year ago

Hi @Holo-Duke,

Thank you for reporting this issue and for detailed description

We are working on a fix, I will let you know when a release with this issue is available

Best regards, Marina

mariru27 commented 1 year ago

Hi @Holo-Duke,

A fix for this issue is available in Clang Power Tools release v2023.6.0

Kind regards, Marina