This is an archive of the discontinued LLVM Phabricator instance.

Correct invalid end location in diagnostics for some identifiers.
AbandonedPublic

Authored by erikjv on Jun 7 2016, 7:34 AM.

Details

Reviewers
klimek
bkramer
Summary

Declaration names in DeclSpec had only their start set to a valid
location, so when the type specifier was missing, only the carret would
be shown at the first character of the name of a member declaration. Now
the whole identifier is underlined, which is useful for IDEs using
libclang.

Also, when the lookup for an identifier-expression failed, the end
location for that identifier was invalid.

Fixes PR25374.

Diff Detail

Event Timeline

erikjv abandoned this revision.Jun 7 2016, 7:34 AM
erikjv updated this revision to Diff 59885.
erikjv retitled this revision from to Correct invalid end location in diagnostics for some identifiers..
erikjv updated this object.
erikjv added reviewers: bkramer, klimek.
erikjv added a subscriber: cfe-commits.

Wrong patch