[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


================
@@ -121,6 +123,18 @@ def __init__(self, args: argparse.Namespace, extra_args: List[str]) -> None:
             self.clang_extra_args = self.clang_tidy_extra_args[i + 1 :]
             self.clang_tidy_extra_args = self.clang_tidy_extra_args[:i]
 
+        self.check_header_map: Dict[str, str] = {}
----------------
zeyi2 wrote:

The diff here sets up the environment for headers testing:

- `check_header_map`:  maintain a mapping between the original path and temp files
- add `-I <temp_header_dir>` to the arguments. This ensures that `clang-tidy` uses the copies of the headers.

https://github.com/llvm/llvm-project/pull/175735


More information about the cfe-commits mailing list