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

The build should report suggested remappings from the ClangSharp output #1242

Closed
sotteson1 opened this issue Sep 9, 2022 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@sotteson1
Copy link
Contributor

I was working on a bug and realized I had forgotten that ClangSharp will tell you about typedefs that show you might want a remapping (e.g. tagMY_STRUCT to MY_STRUCT). I added a bunch of new mappings from this data.

I used this command to display them:

 get-childitem .\generation\WinSDK\obj\scratch\ -Recurse -Filter '*.txt' | select-string -Pattern "Recommended remapping: \'([^\']*)\'" | ForEach {$_.Matches} | select-object {$_.Groups[1].Value} -Unique

We can't just take all of these as remappings, because many of them are from typedefs that would make things worse. So, we would need a file to keep track of known ones we want to ignore. The build would then look for items using something like command above, but then filter out items using the known list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant