c_cpp_properties.json is a configuration file specific to Microsoft's C/C++ VSCode plugin. It's not used by clangd or clang-tidy.

Clangd and clang-tidy use compile_commands.json for configuration. Please see https://clangd.llvm.org/installation#compile_commandsjson for some discussion of this file and how to generate it.

Answer from HighCommander4 on Stack Overflow
🌐
Microsoft
devblogs.microsoft.com › dev blogs › c++ team blog › visual studio code c++ december 2021 update: clang-tidy
Visual Studio Code C++ December 2021 Update: clang-tidy - C++ Team Blog
December 21, 2021 - The latest insiders release of ... VS Code! Clang-tidy is a clang-based C++ linter tool that detects common errors in your code, like style violations and bugs that can be deduced via static analysis....
🌐
Reddit
reddit.com › r/cpp › clang-tidy support in vscode is possible
r/cpp on Reddit: clang-tidy support in VSCode is possible
October 21, 2020 -

if you're an exceptionally attractive individual like me, the only things preventing you from retiring clion and adopting vscode (for everything) are clang-tidy and cppcheck. we can get clang-tidy by upvoting this feature request for adding clang-tidy support to the cpp extension for vscode: https://github.com/microsoft/vscode-cpptools/issues/2908

clang-tidy good. more clang-tidy.

Discussions

vscode extensions - Visual Studio Code Clangd only use clang-tidy for project. Problems with external include - Stack Overflow
I want to use clang-tidy in VsCode to establish a consistent coding style. The project does not use Cmake and I am currently not feeding compiler-options to clang-tidy. I am running into problems More on stackoverflow.com
🌐 stackoverflow.com
Clang-tidy: what is the proper set-up?
I have now seen that I can install ... SMP PREEMPT_DYNAMIC Wed Mar 19 17:07:41 UTC 2 x86_64 x86_64 x86_64 GNU/Linux) with up-to-date VScode and PIO. When running clang-tidy --version Ubu...... More on community.platformio.org
🌐 community.platformio.org
0
0
June 1, 2025
Clang-Tidy warnings not appearing in header files (Using Visual Studio Code) - clang-tidy - LLVM Discussion Forums
Greetings, I have been running clang-tidy tool check in a C++ project, but it only works in .cpp, not in header files. 1- Do I have to add an specific configuration in my .clang-tidy file to start working the checks in header files? 2- In Visual Studio Code, I tried to use header filter option, ... More on discourse.llvm.org
🌐 discourse.llvm.org
0
May 10, 2024
Location of clang-tidy used by clangd extension to VSCode on Ubuntu?
Not sure if I should ask it here or in [clangd/vscode-clangd/issues](https://github.com/clangd/vscode-clangd/issues (there I didn't find Discussions tab), but I use VSCode clangd extension on U... More on github.com
🌐 github.com
1
0
January 2, 2025
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › pure-virtual-cpp-2022 › clang-tidy-in-visual-studio-code
clang-tidy in Visual Studio Code | Microsoft Learn
April 20, 2022 - clang-tidy is an extensible C++ linter which can be used to find issues in your code and to enforce style rules in your codebase. Find out how you can leverage it from within Visual Studio Code.
🌐
Clang
clang.llvm.org › extra › clang-tidy › Integrations.html
Clang-tidy IDE/Editor Integrations — Extra Clang Tools 23.0.0git documentation
For Vim, you can use Syntastic, which includes clang-tidy, or A.L.E., a lint engine that applies clang-tidy along with other linters. ... clang-tidy is integrated in CPPDepend starting from version 2018.1 and CPPCheck 1.82. CPPCheck integration lets you import Visual Studio solutions and run the clang-tidy inspection on them.
🌐
GitHub
github.com › openblack › openblack › wiki › Getting-clang‐tidy-working-on-Windows-with-VSCode
Getting clang‐tidy working on Windows with VSCode
August 31, 2024 - If it doesn't, try making a clang-tidy violation such as removing & from a auto& or adding a comment with only // TODO, then press F1 and restart the clangd server. Once it's done indexing, you will see violations highlighted in vscode.
Author   openblack
🌐
YouTube
youtube.com › microsoft developer
clang-tidy in Visual Studio Code - YouTube
Sign up for Pure Virtual C++ 2022, a free one-day virtual conference for the whole C++ community running on April 26th: https://aka.ms/pure-virtual-cppclang-...
Published   April 21, 2022
Views   19K
Find elsewhere
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
CS 128 Clang-Tidy - Visual Studio Marketplace
March 27, 2023 - Extension for Visual Studio Code - Integrates clang-tidy into VS Code
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Clang-Tidy for VS Code - Visual Studio Marketplace
2 weeks ago - Extension for Visual Studio Code - Integrates clang-tidy into VS Code with an interactive sidebar and the ability to apply fixes on save.
🌐
PlatformIO Community
community.platformio.org › t › clang-tidy-what-is-the-proper-set-up › 47609
Clang-tidy: what is the proper set-up? - PlatformIO Community
June 1, 2025 - I have now seen that I can install ... SMP PREEMPT_DYNAMIC Wed Mar 19 17:07:41 UTC 2 x86_64 x86_64 x86_64 GNU/Linux) with up-to-date VScode and PIO. When running clang-tidy --version Ubu......
🌐
LLVM Discussion Forums
discourse.llvm.org › clang frontend › clang-tidy
Clang-Tidy warnings not appearing in header files (Using Visual Studio Code) - clang-tidy - LLVM Discussion Forums
May 10, 2024 - Greetings, I have been running clang-tidy tool check in a C++ project, but it only works in .cpp, not in header files. 1- Do I have to add an specific configuration in my .clang-tidy file to start working the checks in header files? 2- In Visual Studio Code, I tried to use header filter option, adding this line: “C_Cpp.codeAnalysis.clangTidy.headerFilter”: “${workspaceFolder}” or “C_Cpp.codeAnalysis.clangTidy.headerFilter”: “.*” but it still did not work.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Clang-tidy Linter - Visual Studio Marketplace
Extension for Visual Studio Code - A Visual Studio Code extension to lint code by clang-tidy.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Clang-Tidy-On-Active-File - Visual Studio Marketplace
Extension for Visual Studio Code - Run clang-tidy and display results within VSCode.
🌐
Mbed OS
forums.mbed.com › mbed os
How to activate clang-tidy checks - Mbed OS - Arm Mbed OS support forum
January 12, 2022 - I don’t know how to activate clang tidy. I followed the Code linting Documentation and created the .clang-tidy file. In my code I have a null pointer. char *a = NULL; This should be converted to nullptr. Unfortunately, after compiling, there is no warning or error telling me this.
🌐
Microsoft Learn
learn.microsoft.com › en-us › cpp › code-quality › clang-tidy
Using Clang-Tidy in Visual Studio | Microsoft Learn
Clang-Tidy is the default analysis tool when using the LLVM/clang-cl toolset, available in both MSBuild and CMake. You can configure it when using an MSVC toolset to run alongside, or to replace, the standard Code Analysis experience.
🌐
KDAB
kdab.com › clang-tidy-part-1-modernize-source-code-using-c11c14
Clang-Tidy, part 1: Modernize your source code using C++11/C++14 | KDAB
January 22, 2025 - This blog series will introduce the clang-tidy utility from the Clang/LLVM project and show how to use it to automatically refactor C++ source code and integrate with your build system, as well as how to use the tool on other platforms than Unices.
🌐
PlatformIO Community
community.platformio.org › platformio ide
Generate defines in c_cpp_properties.json for clang-tidy in vscode-cpptools 1.8.0 - PlatformIO IDE - PlatformIO Community
December 14, 2021 - I’m trying to use new vscode-cpptools 1.8.0 (insider2) with integrated clang-tidy. And I was able to make it work but it requires some manual work. The problem is when I run clang-tidy without modification than it has not enough flags to run correctly. So I run verbose pio check to see how it is done by pio itself and it seems that there are a lot of D__* flags added /Users/lukas/.platformio/packages/tool-clangtidy/clang-tidy --quiet --checks=* /Users/lukas/dev/projects/sauna_meter/src/main.cp...