This is an archive of the discontinued LLVM Phabricator instance.

[pp-trace] Print HashLoc in InclusionDirective callback
ClosedPublic

Authored by oToToT on May 11 2022, 4:21 AM.

Details

Summary

The HashLoc in InclusionDirective callback is an unused parameter.
Since pp-trace is also used as a test of Clang’s PPCallbacks interface,
add it to the output of pp-trace could avoid some unintended change on
it.

This shuold resolves PR52673

Diff Detail

Event Timeline

oToToT created this revision.May 11 2022, 4:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 4:21 AM
oToToT requested review of this revision.May 11 2022, 4:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 4:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jun 2 2022, 4:54 AM

LGTM! Can you add a release note for the change? (There's an Improvements to pp-trace section in docs\ReleaseNotes.rst)

This revision is now accepted and ready to land.Jun 2 2022, 4:54 AM
oToToT updated this revision to Diff 433722.Jun 2 2022, 5:34 AM

Added a release note for the change.

aaron.ballman accepted this revision.Jun 2 2022, 8:29 AM

LGTM!

Do you need me to commit on your behalf? If so, what name and email address would you like me to use for patch attribution?

Thanks for reviewing!
I will commit it myself later. :)

This revision was automatically updated to reflect the committed changes.