clang-tidy in Visual Studio Code
summary
Shows how to run clang-tidy from the command line and inside Visual Studio Code, using a workspace .clang-tidy file to allow the literal 100 while still flagging 1 as a magic number; demonstrates CLI checks, VS Code’s “Run Code Analysis on Active File” and the run automatically setting so saves trigger analysis, and explains the codeAnalysisExclude setting to skip third‑party headers. Quick‑fix application is not yet available in the editor but is promised for a future release.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:13Run Clang Tidy
- 2:40Customize the Clang Tidy
- 5:43Enable and Disable Clang Tidy
- 6:51Run Automatically
- 8:27Code Analysis Exclude
- 9:23Quick Fix
related talks
01h 05mImprove your code with Clang Tooling
01h 01mHow to Refactor Millions of Line of Code Without Alienating your Colleagues
36mCode Analysis: Empowering developers to write performant, reliable, and safe C++
51mCode Analysis ++
26mStatic Code Analysis with Gitlab CI
36mC++ Development with Visual Studio Code
53mDebug C++ Without Running
38mCheck and Detect T SQL Code Analysis
