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

Function is_top_level_include

ci/lint_cpp/include_paths_checker.py:158–164  ·  view source on GitHub ↗

Check if include path is a top-level file (no directory separator). Top-level includes like "FastLED.h", "pixeltypes.h" are valid since they refer to files directly in src/.

(include_path: str)

Source from the content-addressed store, hash-verified

156
157
158def is_top_level_include(include_path: str) -> bool:
159 """Check if include path is a top-level file (no directory separator).
160
161 Top-level includes like "FastLED.h", "pixeltypes.h" are valid since
162 they refer to files directly in src/.
163 """
164 return "/" not in include_path and "\\" not in include_path
165
166
167def looks_like_fastled_code(include_path: str) -> bool:

Callers 1

is_valid_include_pathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected