This is an archive of the discontinued LLVM Phabricator instance.

Add getter methods for arguments, ranges and fix-it hints to PartialDiagnostic
Needs ReviewPublic

Authored by stephant on Mar 12 2014, 11:11 AM.

Details

Reviewers
rsmith
Summary

Add getter methods for arguments, ranges and fix-it hints to PartialDiagnostic

I copied the methods from Diagnostic.h and adapted them to the different storage. I've also modified getFixItHints to return an ArrayRef instead of a pointer.

I need the argument and range accessors for improving the enable-if SFINAE diagnostics.

Diff Detail

Event Timeline

As we've discussed on the other patch, I don't like violating the abstraction of PartialDiagnostic in this way. I think there are other approaches we can use to get the desired behavior without resorting to this.