.clangd 969 B

123456789101112131415161718192021222324252627282930313233
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. CompileFlags:
  5. # Workaround for https://github.com/clangd/clangd/issues/1582
  6. Remove: [-march=*]
  7. Diagnostics:
  8. # `unused-function`: has false positives due to not performing template
  9. # instantiation. We get a more reliable version of this warning from the
  10. # compiler.
  11. # `unused-includes`: has false positives, reporting includes unused when
  12. # they are used. Probably the same root cause as unused-function.
  13. Suppress: [unused-function, unused-includes]
  14. ---
  15. # Suppress common diagnostics for x-macro files.
  16. If:
  17. PathMatch: .*\.def
  18. Diagnostics:
  19. Suppress:
  20. # The `#error` requiring a macro definition.
  21. - pp_hash_error
  22. ---
  23. # Suppress diagnostics for template source files.
  24. If:
  25. PathMatch: .*\.tpl\.h
  26. Diagnostics:
  27. Suppress:
  28. - undeclared_var_use