MCPcopy Create free account
hub / github.com/FastLED/FastLED / main

Function main

ci/lint_cpp/iwyu_pragma_block_checker.py:249–264  ·  view source on GitHub ↗

Run IWYU pragma block checker standalone.

()

Source from the content-addressed store, hash-verified

247
248
249def 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
267if __name__ == "__main__":

Callers 1

Calls 3

collect_files_to_checkFunction · 0.90
run_checker_standaloneFunction · 0.90

Tested by

no test coverage detected