(line: str)
| 75 | # Then |
| 76 | # It "looks" like a header guard |
| 77 | def looks_like_header_guard(line: str) -> bool: |
| 78 | sline = line.strip() |
| 79 | guard_candidate = strip_comments(sline[len("#ifndef"):]) |
| 80 | |
| 81 | return is_ifndef(sline) and not guard_candidate.startswith("__") and guard_candidate.isupper() |
| 82 | |
| 83 | |
| 84 | def fix_header_guard(lines: List[str], expected_header_guard: str, comment_style: str) -> Tuple[List[str], bool]: |
no test coverage detected