This is an archive of the discontinued LLVM Phabricator instance.

[mlir][AttrType] Emit unbalanced character errors using the last punctuation used
ClosedPublic

Authored by rriddle on Jan 12 2023, 2:21 PM.

Details

Summary

This gives a better diagnostic in general, because it indicates that the user didn't
close out the last open puncutation range. For example:

foo.op {
  some.op -> !blah.pointer<
}

We want the error to hint about the unclosed <, not the } (which isn't really in the context of the type).

Depends on D140199

Diff Detail

Event Timeline

rriddle created this revision.Jan 12 2023, 2:21 PM
rriddle requested review of this revision.Jan 12 2023, 2:21 PM
jpienaar accepted this revision.Jan 12 2023, 2:24 PM
jpienaar added a subscriber: jpienaar.

Nice, easier to read IMHO

This revision is now accepted and ready to land.Jan 12 2023, 2:24 PM
Mogball accepted this revision.Jan 12 2023, 2:27 PM
Mogball added a subscriber: Mogball.

nuceu

This revision was landed with ongoing or failed builds.Jan 12 2023, 2:58 PM
This revision was automatically updated to reflect the committed changes.