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

Improve access checking code #4317

Merged

Conversation

brymer-meneses
Copy link
Contributor

@brymer-meneses brymer-meneses commented Sep 15, 2024

This change accomplishes the TODOs for access checking. More specifically it,

  • makes SemIR::AccessKind formattable using llvm::formatv.
  • makes use of LookupUnqualifiedName to find Self.

toolchain/sem_ir/name_scope.h Outdated Show resolved Hide resolved
toolchain/check/context.cpp Outdated Show resolved Hide resolved
toolchain/check/testdata/class/access_modifers.carbon Outdated Show resolved Hide resolved
Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

auto-merge was automatically disabled September 17, 2024 16:26

Head branch was pushed to by a user without write access

@brymer-meneses
Copy link
Contributor Author

Seems like this was failing because of some line changes, sorry about that.

@jonmeow
Copy link
Contributor

jonmeow commented Sep 17, 2024

No worries!

@jonmeow jonmeow added this pull request to the merge queue Sep 17, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 17, 2024
This change accomplishes the TODOs for access checking. More
specifically it,
- makes `SemIR::AccessKind` formattable using `llvm::formatv`.
- makes use of `LookupUnqualifiedName` to find `Self`.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@jonmeow jonmeow added this pull request to the merge queue Sep 17, 2024
Merged via the queue into carbon-language:trunk with commit da40c8b Sep 17, 2024
8 checks passed
@brymer-meneses brymer-meneses deleted the refactor-access-modifers branch September 17, 2024 23:23
hamphet pushed a commit to hamphet/carbon-lang that referenced this pull request Sep 18, 2024
This change accomplishes the TODOs for access checking. More
specifically it,
- makes `SemIR::AccessKind` formattable using `llvm::formatv`.
- makes use of `LookupUnqualifiedName` to find `Self`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants