Using Clang from Visual Studio

preview_player
Показать описание
This month, Richard Thomson gives us a look at how to use clang tools from inside Visual Studio, demonstrating the support that comes "out of the box" in Visual Studio 2019.

This includes integration of clang-format for source code formatting, clang-tidy for detecting problems in your code through static analysis, and clang-cl as a compiler front end for your source files.
Рекомендации по теме
Комментарии
Автор

I really appreciate the detailed, precise description on how to use this tool.
Most of the times you find half assed information, that is not to the point, and "assumes" you know the "trivials".
Thank you again, you helped me configure the clang formatter for visual studio 2019. ( which to my humble opinion will still not help us a lot with code clarity because the team is using CamelCase1IllIlliterateDung as standard...

RolandNSI
Автор

9:13 you suggest that newer versions of clang-format don't work with older versions of the .clang-format file, to my knowledge that is incorrect, we go to great lengths try to ensure we have backwards compatibility on the .clang-format file meaning projects can upgrade their clang-format.exe to a new version and it should always work. What doesn't work however is if you configure in the the .clang-format file a setting which is used by a version of clang-format.exe that is LATER than the one you are using, in this case clang-format will error out. If you do actually see the behaviour your describe please log that issue for the team.

mydeveloperday
Автор

I use Resharper for couple of years, and having it is like a charm. The only thing that does matter is ressource !!! but it does make dev heaven.

BloodHaZaRd
Автор

where clang-format
INFO: Could not find files for the given pattern(s).🥲

Kill-qjng