This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Make use of SourceOrder to find first initializer in DefineOutline
ClosedPublic

Authored by kadircet on May 25 2020, 8:27 AM.

Details

Summary

Constructors can have implicit initializers, this was crashing define
outline. Make sure we find the first "written" ctor initializer to figure out
: location.

Fixes https://github.com/clangd/clangd/issues/400

Diff Detail

Event Timeline

kadircet created this revision.May 25 2020, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2020, 8:27 AM
sammccall accepted this revision.May 25 2020, 9:13 AM
This revision is now accepted and ready to land.May 25 2020, 9:13 AM
This revision was automatically updated to reflect the committed changes.