This is an archive of the discontinued LLVM Phabricator instance.

Pass IsInherited when merging attribute lists [RFC]
AbandonedPublic

Authored by Meinersbur on Aug 2 2018, 8:00 PM.

Details

Reviewers
None
Summary

Attempt to solve the the diagnostic marker order ('note: previous declaration here' pointing to a source location before the main error marker) from D48100.

The approach is to pass a IsInherited parameters. If false, the order if the diagnostic marker is reversed.

The actual reversal is only implemented for two diagnoses: diag::err_mismatched_visibility and diag::err_ownership_returns_index_mismatch. Test cases not adapted.

Diff Detail