Add is_in_system_header property for Location class.
Corresponding unit test was also added.
Paths
| Differential D147414
[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 TimelineComment Actions 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 Comment Actions 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.
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 Comment Actions Bring back Python section in release notes and document new is_in_system_header property. Comment Actions
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. Closed by commit rGc7161e73ca0a: [python] Expose clang_Location_isInSystemHeader (authored by R2RT, committed by aaron.ballman). · Explain WhyApr 4 2023, 6:21 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 510542 clang/bindings/python/clang/cindex.py
clang/bindings/python/tests/cindex/test_location.py
clang/docs/ReleaseNotes.rst
|