This is an archive of the discontinued LLVM Phabricator instance.

Inform the consumer on invalid template instantiations.
ClosedPublic

Authored by v.g.vassilev on Nov 27 2020, 2:09 PM.

Details

Summary

Some clients which want to track state need the information whether a template was instantiated and made invalid.

Diff Detail

Event Timeline

v.g.vassilev requested review of this revision.Nov 27 2020, 2:09 PM
v.g.vassilev created this revision.
rsmith accepted this revision.Dec 14 2020, 4:12 PM

Looks like the in-tree consumers are fine with being called on invalid declarations (CodeGen bails out if any errors have occurred). I don't think there's any easy way to find if out-of-tree consumers will be OK with this, but it does seem reasonable to ensure that we pass all the tag definitions to the consumer, even if they're invalid.

This revision is now accepted and ready to land.Dec 14 2020, 4:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2021, 1:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript