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

Do not remove parethensis #358

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Conversation

kant2002
Copy link
Contributor

That's potentially risky move on real codebases, but that's not captured anywhere in tests, so I will move ahead with a change.

Would be good if somebody test that on some larger codebase and check how it works for them.

Most other changes is only in testing infra. I take liberty and do following change operating from following premises.

  • there only 2 radically different output formats: CSharp and Xml
  • Most codegeneration would be platform neutral.
  • You will need to override tests based on platform needs (like it is right now)

I do trying not create sets of identical tests for each platform, since it's a bit boring and timeconsuming to validate. For example using existing approach not clear what's platform-independent behaviour and what is OS specific behavior of ClangSharp. After this change all platform independent tests may sit in Base folder, and additional tests and/or augmentations will be in same location as it is now.

Fixes #357

That's potentially risky move on real codebases, but that's not captured anywhere in tests, so I will move ahead with a change.

Would be good if somebody test that on some larger codebase and check how it works for them.

Most other changes is only in testing infra. I take liberty and do following change operating from following premises.
- there only 2 radically different output formats: CSharp and Xml
- Most codegeneration would be platform neutral.
- You will need to override tests based on platform needs (like it is right now)

I do trying not create sets of identical tests for each platform, since it's a bit boring and timeconsuming to validate. For example using existing approach not clear what's platform-independent behaviour and what is OS specific behavior of ClangSharp. After this change all platform independent tests may sit in Base folder, and additional tests and/or augmentations will be in same location as it is now.

Fixes dotnet#357
@tannergooding
Copy link
Member

Validated against a few various projects and no issues seen.

@tannergooding tannergooding merged commit 08851fe into dotnet:main Jul 15, 2022
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.

Macros did not apply correctly.
2 participants