This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix crash hovering on non-decltype trailing return
ClosedPublic

Authored by malaperle on Nov 14 2018, 3:51 PM.

Details

Summary

More specifically, hovering on "auto" in
auto main() -> int {

return 0;

}

Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>

Event Timeline

malaperle created this revision.Nov 14 2018, 3:51 PM
malaperle updated this revision to Diff 174117.Nov 14 2018, 3:56 PM

Fix comment in test

This seems ready, so putting myself in as a reviewer.
Let me know if there's more work to do and you don't want the review yet.

Thanks for the fix, just a single NIT comment.

clangd/XRefs.cpp
628

NIT: use 'auto' here, since the type is spelled explicitly in the initializer.

malaperle updated this revision to Diff 174202.Nov 15 2018, 6:28 AM

Address comment.

malaperle marked an inline comment as done.Nov 15 2018, 6:28 AM
This revision is now accepted and ready to land.Nov 16 2018, 1:37 AM

Thanks for the review!

This revision was automatically updated to reflect the committed changes.