Skip to content

Move pointer/reference rejection to Sema#8436

Open
llvm-beanz wants to merge 1 commit intomicrosoft:mainfrom
llvm-beanz:cbieneman/pointer-rework
Open

Move pointer/reference rejection to Sema#8436
llvm-beanz wants to merge 1 commit intomicrosoft:mainfrom
llvm-beanz:cbieneman/pointer-rework

Conversation

@llvm-beanz
Copy link
Copy Markdown
Collaborator

This is a refactoring to move the rejection of pointer and reference types into Sema rather than rejecting it during parsing. This has a few consequences and benefits.

The consequence as seen in the changes to the cpp-errors tests are that we don't see pointer use errors in cases where a parser error prevents sema code from executing (as seen in operator cases).

The benefit is that this also intercepts pointer and reference types that are deduced (via templates, auto or decltype).

This is a refactoring to move the rejection of pointer and reference
types into Sema rather than rejecting it during parsing. This has a few
consequences and benefits.

The consequence as seen in the changes to the cpp-errors tests are that
we don't see pointer use errors in cases where a parser error prevents
sema code from executing (as seen in operator cases).

The benefit is that this also intercepts pointer and reference types
that are deduced (via templates, auto or decltype).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant