This is an archive of the discontinued LLVM Phabricator instance.

[python] Expose clang_Location_isInSystemHeader
ClosedPublic

Authored by R2RT on Apr 2 2023, 9:55 AM.

Details

Summary

Add is_in_system_header property for Location class.

Corresponding unit test was also added.

Diff Detail

Event Timeline

R2RT created this revision.Apr 2 2023, 9:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2023, 9:55 AM
Herald added a subscriber: arphaman. · View Herald Transcript
R2RT requested review of this revision.Apr 2 2023, 9:55 AM
R2RT added a comment.Apr 2 2023, 10:00 AM

I thought about adding it into release notes, but recently Python section has got removed from ReleaseNotes.rst, so I am not sure what to do now: https://reviews.llvm.org/D142578

aaron.ballman accepted this revision.Apr 3 2023, 5:08 AM

LGTM! Do you need someone to land this on your behalf? If so, please let me know what name and email address you would like for patch attribution.

I thought about adding it into release notes, but recently Python section has got removed from ReleaseNotes.rst, so I am not sure what to do now: https://reviews.llvm.org/D142578

The section was removed mostly because the python bindings weren't getting a lot of updates. I think this deserves a release note, so let's add the python bindings section back in and put a note under it for this.

This revision is now accepted and ready to land.Apr 3 2023, 5:08 AM
R2RT updated this revision to Diff 510542.Apr 3 2023, 10:00 AM

Bring back Python section in release notes and document new is_in_system_header property.

R2RT added a comment.Apr 3 2023, 10:08 AM

LGTM! Do you need someone to land this on your behalf? If so, please let me know what name and email address you would like for patch attribution.

I thought about adding it into release notes, but recently Python section has got removed from ReleaseNotes.rst, so I am not sure what to do now: https://reviews.llvm.org/D142578

The section was removed mostly because the python bindings weren't getting a lot of updates. I think this deserves a release note, so let's add the python bindings section back in and put a note under it for this.

I've brought back Python section with relevant note.

I have no idea how to land it, it is my first contribution here, so maybe it will be easier this way.
Please attribute it to Artur Ryt <artur.ryt@r2software.pl>, thanks :)

This revision was automatically updated to reflect the committed changes.