Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stringToName special case for all-underscores identifier strings #1260

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

wandernauta
Copy link
Contributor

Before, parsing the following PVL program like the following would give an assertion error, since it would attempt to build a preferred name with no parts:

void ___() {
}

It now gets a preferred name with one part, the string "___".

Also adds a unit test for stringToName.

@superaxander
Copy link
Member

Looks like the compilation fails because github updated the ubuntu-latest runner image from ubuntu-22.04 to ubuntu-24.04 which contains a newer version of LLVM while VCLLM still expects LLVM 15 to be present. Once #1159 is merged (hopefully this week) this will be resolved.

@wandernauta
Copy link
Contributor Author

Indeed. I'll rebase this (and #1261) on dev once that PR is in. It looks really cool!

Before, parsing the following PVL program would give an assertion error, since it would attempt to build a preferred name with no parts:

```
void ___() {
}
```

It now gets a preferred name with one part, the string "___".

Also adds a unit test for stringToName.
@superaxander superaxander merged commit 9c739cc into utwente-fmt:dev Oct 18, 2024
13 checks passed
@wandernauta wandernauta deleted the underscore branch October 18, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants