Hello @Akshat Jain,
Welcome to Microsoft Q&A forum.
I double checked in the latest version of Visual Studio 2022(currently 17.10.5), it’s true that the Clang-Tidy Tool Directory
property doesn’t exist there.
Previously(several years ago), Eli Fessler mentioned(Code analysis with clang-tidy in Visual Studio – Future work):
The UI doesn’t currently support pointing Visual Studio to use a custom clang-tidy.exe, which may be desired in the case of using custom checks, but we’re exploring this as an option going forward.
Probably, this option is still not available on release version of VS 2022. So, I checked the release notes of Preview version of Visual Studio 2022 here => Custom Clang-Tidy Executable
You can now use a custom clang-tidy executable for all your projects. This lets you run clang tidy on individual projects with your own custom rules, without relying on the default clang-tidy executable.
And tested locally, I can see that the Clang-Tidy Tool Directory
option shows in the Preview version of Visual Studio 2022.
I think currently you have two choices, one is trying to use preview version of VS 2022, the other is waiting for this feature to be released in release version of VS 2022 and use it.
Please feel free to let us know if you have any further concerns :)
Happy coding!
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.