Resharper Clang-Tidy vs Visual Studio Clang-Tidy

Both Resharper C++ and Visual Studio 2022 offer Clang-Tidy.

  1. What are the differences?
  2. Should I disable one or use both?

 

0
1 comment
Avatar
Permanently deleted user

You don't need to use both. Visual Studio's integration is pretty basic - it simply runs the bundled clang-tidy on save and shows the squiggles in the editor. Compare to R# integration:

1) Clang-tidy is run after every text change, so the results are always up-to-date.

2) You can use your own clang-tidy binary.

3) You can apply suggestions (fix-its) provided by clang-tidy from the Alt+Enter menu and use them in code cleanup.

4) You can change the severity of clang-tidy suggestions similar to R#'s own inspections from R# UI.

5) Additional actions are provided by R#, like open the documentation page for a check or suppress a check with a NOLINT comment.

1

Please sign in to leave a comment.