.clangd 736 B

123456789101112131415161718192021222324252627282930
  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-includes`: has false positives, reporting includes unused when
  9. # they are used.
  10. Suppress: [unused-includes]
  11. ---
  12. # Suppress common diagnostics for x-macro files.
  13. If:
  14. PathMatch: .*\.def
  15. Diagnostics:
  16. Suppress:
  17. # The `#error` requiring a macro definition.
  18. - pp_hash_error
  19. ---
  20. # Suppress diagnostics for template source files.
  21. If:
  22. PathMatch: .*\.tpl\.h
  23. Diagnostics:
  24. Suppress:
  25. - undeclared_var_use