Turn off -Wunneeded-internal-declaration in clangd. (#7793)

Like the other unused warnings, it misfires when the only uses are in
template instantiations.

This is misfiring in #7771's CI checks.
This commit is contained in:
Richard Smith
2026-09-17 01:23:25 +00:00
committed by GitHub
parent ebf1675356
commit ccb5ba1b92
+5 -7
View File
@@ -6,13 +6,11 @@ CompileFlags:
# Workaround for https://github.com/clangd/clangd/issues/1582
Remove: [-march=*]
Diagnostics:
# `unused-function`: has false positives due to not performing template
# instantiation. We get a more reliable version of this warning from the
# compiler.
# `unused-includes`: has false positives, reporting includes unused when
# they are used. Probably the same root cause as unused-function.
# `unused-template`: has false positives, which we see in eval.cpp.
Suppress: [unused-function, unused-includes, unused-template]
# `unneeded-internal-declaration`, `unused-function`, `unused-includes`,
# `unused-template`: These all have false positives due to not performing
# template instantiation. We get a more reliable version of these warnings
# from the compiler.
Suppress: [unneeded-internal-declaration, unused-function, unused-includes, unused-template]
---