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

Update for newer Clang #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CraigMacomber
Copy link

Update to support templight built with current version of clang (tested at 1d39f2e5adc9fb5e0d5ec45a5ebddf1534398ff9).

Required updating InstantiationKindStrings to match CodeSynthesisContext::SynthesisKind in Sema.h from Clang (I was getting corrupted strings from indexing off the end of that array: I assumed this was the correct fix, and it seems to work now, but I have not confirmed the data is fully accurate)

Also included is some small refactoring to deduplicate the two copies of InstantiationKindStrings.

This likely will cause incorrect output when used with older versions of clang, so I'm not sure if you want this change upstream, an/or if you want to include some version disclaimers.

…ionKindStrings must match CodeSynthesisContext::SynthesisKind in Sema.h from Clang
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.

1 participant