mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 09:10:13 +01:00
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:
@@ -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]
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user