Skip to content

Commit

Permalink
Don't remove copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Apr 20, 2024
1 parent d6e8f01 commit 1d2e370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite/auto-sync/src/autosync/HeaderPatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def replace_typedef_enum(self, aarch64_lines: list[str]) -> list[str]:
def remove_comments(self, aarch64_lines: list[str]) -> list[str]:
output = list()
for line in aarch64_lines:
if re.search(r"^\s*//", line):
if re.search(r"^\s*//", line) and "// SPDX" not in line:
continue
output.append(line)
return output
Expand Down

0 comments on commit 1d2e370

Please sign in to comment.