MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / strip_comments

Function strip_comments

scripts/check_header_guards.py:66–69  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

64
65# Strips the given line from // and /* */ blocks
66def strip_comments(line: str) -> str:
67 line = re.sub(r"/\*.*\*/", "", line)
68 line = re.sub(r"//.*", "", line)
69 return line.strip()
70
71# If the line
72# 1) startswith #ifndef

Callers 1

looks_like_header_guardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected