~/talk

clang-tidy in Visual Studio Code

Talkat Pure Virtual C++ 2022 · on Tuesday, 2022-04-26· [testing, c-and-cpp]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 1:13Run Clang Tidy
  3. 2:40Customize the Clang Tidy
  4. 5:43Enable and Disable Clang Tidy
  5. 6:51Run Automatically
  6. 8:27Code Analysis Exclude
  7. 9:23Quick Fix
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.