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

Function _parse_includes

ci/lint_cpp/test_aggregation_checker.py:83–94  ·  view source on GitHub ↗

Parse all #include paths from an aggregator file.

(aggregator: Path)

Source from the content-addressed store, hash-verified

81
82
83def _parse_includes(aggregator: Path) -> set[str]:
84 """Parse all #include paths from an aggregator file."""
85 includes: set[str] = set()
86 try:
87 content = aggregator.read_text(encoding="utf-8")
88 except OSError:
89 return includes
90 for line in content.splitlines():
91 m = INCLUDE_PATTERN.match(line)
92 if m:
93 includes.add(m.group(1))
94 return includes
95
96
97def _collect_included_files(excluded_dir: Path) -> tuple[Path | None, set[Path]]:

Callers 3

_collect_included_filesFunction · 0.85
checkFunction · 0.85
check_single_fileFunction · 0.85

Calls 2

setClass · 0.50
addMethod · 0.45

Tested by

no test coverage detected