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 22, 2024
1 parent 538d89e commit ef3f29f
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 ef3f29f

Please sign in to comment.