Skip to content
Discussion options

You must be logged in to vote

Thanks @kirawi, this makes sense.

So finally, the following got the clang-tidy diagnostics working for me on helix:

  1. changing helix config languages.toml file to include:
[language-server]
clangd = { command = "clangd", args = [ "--clang-tidy" ] }
  1. Changing clangd config file to include:
Diagnostics:
  ClangTidy:
    Add: [modernize*, readability*]

CompileFlags:
  Add: [-std=c++14, -Wall, -Wextra, -Wshadow]

References:

  1. clangd configuration
  2. list of all clang-tidy checks

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by haxfn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11494 on August 15, 2024 13:09.