Enabling clang-tidy checks in clangd

If I run clangd with the --clang-tidy-checks option, it prints the following on startup:

The flag -clang-tidy-checks is obsolete and ignored.

The supported way to specify checks is mentioned on the Features page you linked to:

clangd respects your project’s .clang-tidy file which controls the checks to run.

Alternatively, you can use the ClangTidy key in clangd’s config file if you prefer.