[clang-tools-extra] [clang-tidy] Header check support for check_clang_tidy.py (PR #175735)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 4 00:02:56 PST 2026
================
@@ -292,26 +355,77 @@ def check_notes(self, clang_tidy_output: str) -> None:
try_run(
[
"FileCheck",
- "-input-file=" + notes_file,
+ f"-input-file={notes_file}",
self.input_file_name,
- "-check-prefixes=" + ",".join(self.notes.prefixes),
+ f"-check-prefixes={','.join(self.notes.prefixes)}",
"-implicit-check-not={{note|warning|error}}:",
]
)
+ def check_header_messages(self, clang_tidy_output: str) -> str:
----------------
zeyi2 wrote:
`check_header_messages` implements the diagnostic splitting logic. It iterates through the raw `clang-tidy` output and acts as a dispatcher.
https://github.com/llvm/llvm-project/pull/175735
More information about the cfe-commits
mailing list