This is an archive of the discontinued LLVM Phabricator instance.

Remove limits on the number of fix-it hints and ranges in the DiagnosticsEngine.
ClosedPublic

Authored by alexfh on May 22 2014, 12:23 PM.

Details

Summary

The limits on the number of fix-it hints and ranges attached to a
diagnostic are arbitrary and don't apply universally to all users of the
DiagnosticsEngine. The way the limits are enforced may lead to diagnostics
generating invalid sets of fixes. I suggest removing the limits, which will also
simplify the implementation.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 9713.May 22 2014, 12:23 PM
alexfh retitled this revision from to Remove limits on the number of fix-it hints and ranges in the DiagnosticsEngine..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: rsmith.
alexfh added a subscriber: Unknown Object (MLST).
alexfh updated this revision to Diff 9714.May 22 2014, 12:24 PM

Removed unrelated files.

rsmith accepted this revision.May 22 2014, 12:56 PM
rsmith edited edge metadata.

Looks great. I wonder why it wasn't always done this way...

lib/Format/Format.cpp
485 ↗(On Diff #9714)

Unrelated change?

This revision is now accepted and ready to land.May 22 2014, 12:56 PM
alexfh updated this revision to Diff 9715.May 22 2014, 1:03 PM
alexfh edited edge metadata.

Removed unrelated file.

alexfh closed this revision.May 22 2014, 1:03 PM
alexfh added inline comments.May 22 2014, 1:04 PM
lib/Format/Format.cpp
485 ↗(On Diff #9714)

Yes, thanks for noticing!