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
🌐
GitHub
github.com › notskm › vscode-clang-tidy
GitHub - notskm/vscode-clang-tidy · GitHub
March 25, 2023 - Runs clang-tidy and displays its diagnostics in VS Code. Note: Diagnostics take longer to appear than in the example gif.
Starred by 51 users
Forked by 29 users
Languages   TypeScript
🌐
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. Recommended resources Visual Studio Code C++ December 2021 Update: 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
VS Code - clang-tidy support in C/C++ extension
I use clangd which does intellisense, static analysis and formatting as well. No need to even have separate clang-format because two extensions in parallel apparently do not like each other. About MS default C/C++ extension...well, I have that disabled...prefer clangd. VS Code is not the only thing that I use because it is not fast enough on large projects. Several other editors have option to use clangd as well. Makes for very good experience when switching tools. More on reddit.com
🌐 r/cpp
10
32
December 14, 2021
c++ - How can I tell VS Code Cpptools' clang-tidy support to use the compile_commands.json generated with CMake? - Stack Overflow
I have an existing cross-compilation build that uses Yocto and CMake. I've added: set(CMAKE_EXPORT_COMPILE_COMMANDS ON) to CMakeLists.txt to generate compile_commands.json as part of my build. How... More on stackoverflow.com
🌐 stackoverflow.com
clang-tidy support in VSCode is possible

Look at vscode-clangd. The code-completion seems more robust (as long as you have suitable compile-commands.json) and it supports clang-tidy.

More on reddit.com
🌐 r/cpp
21
58
October 21, 2020
🌐
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
🌐
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
🌐
Microsoft Learn
learn.microsoft.com › en-us › cpp › code-quality › clang-tidy
Using Clang-Tidy in Visual Studio | Microsoft Learn
These arguments can be used to control how Clang-Tidy parses your code, such as defining macros, include paths, or language standards. Enter arguments as a semi-colon separated list. For example: -std=c++20;-DMY_DEFINE=1;-Ipath\to\include.
🌐
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 the C++ extension is here, bringing clang-tidy support to VS Code! Clang-tidy is a clang-based C++ linter tool that detects
Find elsewhere
🌐
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.
🌐
Reddit
reddit.com › r/cpp › vs code - clang-tidy support in c/c++ extension
r/cpp on Reddit: VS Code - clang-tidy support in C/C++ extension
December 14, 2021 - If there are certain folders that you want clang-tidy to treat differently, add a .clang-tidy file on them. You can use "InheritParentConfig" so you only need to specify the differences over the rest. ... Absolutely you can still the clangd extension, it's just nice to have the functionality rolled into the default extension. For the file excludes portion, it still allows for using the .clang-tidy files, but I imagine it's nice for getting started with clang-tidy if you don't already have the configs throughout the codebase and have some external code (via submodules) that wouldn't be worthwhile to scan.
🌐
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.
🌐
GitHub
github.com › andreasnonslid › clang-tidy-extension
GitHub - andreasnonslid/clang-tidy-extension: An extension to use clang-tidy in VSCode
An extension to use clang-tidy in VSCode. Contribute to andreasnonslid/clang-tidy-extension development by creating an account on GitHub.
Author   andreasnonslid
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Clang Tidy GUI - Visual Studio Marketplace
Extension for Visual Studio Code - Clang Tidy GUI integrates clang-tidy into Visual Studio Code and displays all diagnostics in a convenient interface.
🌐
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
🌐
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.

🌐
Microsoft
devblogs.microsoft.com › dev blogs › c++ team blog › code analysis with clang-tidy in visual studio
Code analysis with clang-tidy in Visual Studio - C++ Team Blog
November 6, 2019 - Hi Eli Thanks for this. I’ve now installed the Clang tools, and all is mostly working well. I can use Clang-Tidy as part of code analysis on build, together with Microsoft’s own analysis tool. e.g. with the example trivial code: #include
🌐
Maximilianmbeck
maximilianmbeck.com › post › clang-tidy_vs-code
maximilianmbeck.com - maximilianmbeck Resources and Information.
April 26, 2021 - maximilianmbeck.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, maximilianmbeck.com has it all. We hope you find what you are searching for!
🌐
Tomato Soup
blog.wholetomato.com › home › tips and tricks › a brief introduction to clang-tidy and its role in visual assist
A Brief Introduction To Clang-Tidy And Its Role in Visual Assist - Tomato Soup
August 1, 2021 - For example, I’m not sure about using a trailing return type for all functions. Additionally, the tool couldn’t improve and apply make_unique in the place where we declare and initialise ptr. So hopefully, with each new revision, we’ll get even better results. But also it’s important to remember that you have to be careful with the fixes. See lines 1 and 12. Clang-tidy added extra and duplicated header file “memory” (this was probably needed for make_unique()).