mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 13:50:10 +01:00
This is firing on some of our _used_ templates in eval.cpp in clang-tidy 24 It was coming to `-Wall` for clang as well (https://github.com/llvm/llvm-project/issues/202945) but was reverted due to issues like false positives (https://github.com/llvm/llvm-project/pull/218638). Some fixes were applied to try enable in `-Wall` in clang 23 (https://github.com/llvm/llvm-project/pull/222336) but it still remains disabled by default for clang.
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
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]
|
|
|
|
---
|
|
|
|
# Suppress common diagnostics for x-macro files.
|
|
If:
|
|
PathMatch: .*\.def
|
|
Diagnostics:
|
|
Suppress:
|
|
# The `#error` requiring a macro definition.
|
|
- pp_hash_error
|
|
|
|
---
|
|
|
|
# Suppress diagnostics for template source files.
|
|
If:
|
|
PathMatch: .*\.tpl\.h
|
|
Diagnostics:
|
|
Suppress:
|
|
- undeclared_var_use
|