Commit 08d2cc3
authored
Disallow exports that are not valid C/C++ identifiers (#23563)
I use `std.isdentifier()` here from python since it has the same rules
for valid identifiers are C/C++.
We could try instead to allow this but I'm not sure it worth it given
that our inputs are almost exclusively compiled from C/C++/rust.
See #235601 parent 92d0bb5 commit 08d2cc3
3 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15539 | 15539 | | |
15540 | 15540 | | |
15541 | 15541 | | |
| 15542 | + | |
| 15543 | + | |
| 15544 | + | |
| 15545 | + | |
| 15546 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
0 commit comments