Skip to content

[SYCL] Account for extern "C++" blocks in name validation #5014

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

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

premanandrao
Copy link
Contributor

When validating a name declared in scopes such as
cl::sycl::kernel_handler, we were assuming that the top-level
declaration context would be Decl::TranslationUnit. This is
not the case when the header file is wrapped explicitly in
extern "C++" blocks.

Signed-off-by: Premanand M Rao [email protected]

When validating a name declared in scopes such as
cl::sycl::kernel_handler, we were assuming that the top-level
declaration context would be Decl::TranslationUnit.  This is
not the case when the header file is wrapped explicitly in
extern "C++" blocks.

Signed-off-by: Premanand M Rao <[email protected]>
Copy link
Contributor

@smanna12 smanna12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bader bader merged commit fcd7e31 into intel:sycl Nov 24, 2021
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.

3 participants