dense-analysis / dense-analysis/ale

Option to hide clang-diagnostic-* messages from clang-tidy

Open
#3,054 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

I'm using coc.nvim with ccls for completion and diagnostics in C/C++ projects. I also want to use ALE with clang-tidy for additional checks (e.g. modernize-use-override). However, regular clang-diagnostic-* messages apparently cannot be disabled in clang-tidy, so, if the file contains errors, I get the same error twice, one by ccls and one by clang-tidy.

Just to mention it, `clang-tidy --checks=-clang-diagnostic-*,modernize-use-override` does not work, as regular errors come directly from the compiler and apparently can't be disabled this way.

Another slight annoyance is that ccls does not require saving for updating diagnostics, unlike clang-tidy. So, even if I *could* have instant error diagnostics, I don't because ALE still shows all those duplicate errors until next save.

It would be nice to have a way to filter out these diagnostics.
This could be done by a simple regex, as each message has a `[clang-diagnostic-]` tag at the end.

The `ale_exclude_highlights` option is similar to what I want, but sadly it applies only to the word highlight, and still shows signs, line highlight, and echo messages.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.