Clang-Tidy support across various editors
The IDE and editor support for Clang-Tidy is broadly similar to that for Clang-Format, making it equally accessible and easy to integrate into your development workflow. The principal advantage of this integrated support is the immediate feedback loop it offers. As you code, Clang-Tidy warnings and errors will appear directly within your IDE, enabling you to spot potential issues without having to leave the development environment. This is immensely valuable for maintaining code quality in real time, rather than as a separate step.
Moreover, many IDEs also provide an interface to apply Clang-Tidy’s automatic fixes directly from within the editor, making it easier than ever to adhere to your coding standards. For example, the following screenshot of Visual Studio Code illustrates the inline warnings:
Figure 9.1 – Warnings
The following screenshot shows the fixes that can be applied to them: