Skip to content

Extract Importer::GetOwningTargetOfLocation - #2709

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1009283754
Oct 29, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1009283754

Conversation

@copybara-service

Copy link
Copy Markdown

Extract Importer::GetOwningTargetOfLocation

No behavior change.

GetOwningTarget finds the target that owns a declaration from the
declaration's location. Move that logic into a helper that takes a
SourceLocation, since an upcoming change needs the owning targets of
macro definitions, which aren't declarations.

@google-cla

google-cla Bot commented Oct 29, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

No behavior change.

`GetOwningTarget` finds the target that owns a declaration from the
declaration's location. Move that logic into a helper that takes a
`SourceLocation`, since an upcoming change needs the owning targets of
macro definitions, which aren't declarations.

PiperOrigin-RevId: 1009850737
@copybara-service
copybara-service Bot merged commit 3425a5e into main Oct 29, 2026
7 of 8 checks passed
@copybara-service
copybara-service Bot deleted the test_1009283754 branch October 29, 2026 18:52

This branch was successfully deployed

1 active deployment
github-pages — 3425a5e8 Deployed Oct 29, 2026 by copybara-service[bot] via deploy #2172
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.

0 participants