[clangd] Fix hover crash on invalid decls
authorKadir Cetinkaya <kadircet@google.com>
Fri, 3 Jul 2020 18:52:41 +0000 (20:52 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 3 Jul 2020 20:51:04 +0000 (22:51 +0200)
commit50ba9f994c6f9c51692282494c3b40dbc69b4abd
treee1893cdeb88ac0031d68e33713a684e0ebe66f7e
parent0939e04e417634f6d38ec4f06835fb80756afdd3
[clangd] Fix hover crash on invalid decls

Summary: This also changes the way we display Size and Offset to be independent.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83143
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp