This is an archive of the discontinued LLVM Phabricator instance.

Change begin of macro in translateSourceRange in libclang
AbandonedPublic

Authored by quic-cbusold on Aug 29 2023, 5:43 AM.

Details

Summary

Currently translateSourceRange changes the end location in case of
a macro. When getting the source location for a macro invocation
it therefore returns the beginning of the macro definition with
the end of the macro invocation (with everything inbetween). This
change makes it return only the location of the macro invocation.

Diff Detail

Event Timeline

quic-cbusold created this revision.Aug 29 2023, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 5:43 AM
Herald added a subscriber: arphaman. · View Herald Transcript
quic-cbusold requested review of this revision.Aug 29 2023, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 5:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
quic-cbusold abandoned this revision.Sep 4 2023, 7:10 AM

This does not work. Need more debugging on my end.