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

Tidy-Fix is executed by Tidy On Save instead of clang-tidy as stated #1335

Open lucasstern opened 7 months ago

lucasstern commented 7 months ago

I don’t know if this is the desired functionality of the toggle “Tidy on save” on the Tidy tab in Settings. But, when I enable it and save a file, CL runs a Tidy-Fix instead of only a Tidy as described on the tooltip. This can cause problems if I want to just check the errors and warnings from clang-tidy, without applying the fixes automatically. I expected that Tidy on save would only perform a code analysis, without modifying anything. Is there any way to configure this? Or is this a bug?

image

After saving the code file:

image