How to disable/suppress specific errors in clangs

As the title suggest, I would like to disable/suppress specific errors reported from LSP. Is there a setting or configuration I can make?

For example, I have “MHz” sprinkled around my code. It’s defined in separate file as constexpr. However, LSP seems to ignore it. The problem is that LSP stop emitting diagnostic errors because there are many instances of “MHz”.

https://clangd.llvm.org/config.html#suppress

Thanks for the quick response.

I tried setting my config.yaml file to:

Diagnostics:
    Suppress: '*'

for testing, but it doesn’t seem like it’s taking affect. Do you have an example I can leverage. Or do you see anything wrong with the config file?

You’ll need to follow-up with the clangd team then.