Run IWYU pragma block checker standalone.
()
| 247 | |
| 248 | |
| 249 | def main() -> None: |
| 250 | """Run IWYU pragma block checker standalone.""" |
| 251 | from ci.util.check_files import collect_files_to_check, run_checker_standalone |
| 252 | |
| 253 | # Collect all header files for cross-validation |
| 254 | src_root = PROJECT_ROOT / "src" |
| 255 | all_files = collect_files_to_check([str(src_root)]) |
| 256 | all_headers = frozenset(f for f in all_files if f.endswith((".h", ".hpp"))) |
| 257 | |
| 258 | checker = IwyuPragmaBlockChecker(all_headers=all_headers) |
| 259 | run_checker_standalone( |
| 260 | checker, |
| 261 | [str(src_root)], |
| 262 | "Found headers with system/platform includes not wrapped in IWYU pragmas", |
| 263 | extensions=[".h", ".hpp"], |
| 264 | ) |
| 265 | |
| 266 | |
| 267 | if __name__ == "__main__": |
no test coverage detected