Skip to content

Commit 75f30a8

Browse files
committed
Swift: refactor ExprVisitor to use translations
1 parent a6b1806 commit 75f30a8

File tree

3 files changed

+405
-497
lines changed

3 files changed

+405
-497
lines changed

swift/codegen/lib/cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"xor", "xor_eq"}
1717

1818
_field_overrides = [
19-
(re.compile(r"(start|end)_(line|column)|index|width|num_.*"), {"type": "unsigned"}),
19+
(re.compile(r"(start|end)_(line|column)|(.*_)?index|width|num_.*"), {"type": "unsigned"}),
2020
(re.compile(r"(.*)_"), lambda m: {"field_name": m[1]}),
2121
]
2222

0 commit comments

Comments
 (0)