This is an archive of the discontinued LLVM Phabricator instance.

[include-cleaner] Always treat constructor calls as implicit
ClosedPublic

Authored by kadircet on Feb 22 2023, 11:18 AM.

Details

Summary

Treating constructor calls when the type name isn't explicitly spelled
can cause spurious results, so turn them into implicit references.
This doesn't change the behaviour for constructor calls that explicitly spell
the type name, as we should see a reference through the typeloc.

Fixes https://github.com/llvm/llvm-project/issues/60812

Diff Detail

Event Timeline

kadircet created this revision.Feb 22 2023, 11:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 11:18 AM
kadircet requested review of this revision.Feb 22 2023, 11:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 11:18 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Feb 23 2023, 12:45 AM
This revision is now accepted and ready to land.Feb 23 2023, 12:45 AM