[clangd] Fix a crash when indexing invalid ObjC method declaration
authorAdam Czachorowski <adamcz@google.com>
Mon, 18 Jan 2021 17:17:52 +0000 (18:17 +0100)
committerAdam Czachorowski <adamcz@google.com>
Mon, 25 Jan 2021 14:43:11 +0000 (15:43 +0100)
commit00054382b95a9d95e2df6457e7fe1fca2323d287
tree4858dba5a531e596329d7510b54fc65f86d8a1d1
parent3546b372219db5c5f4004da6a0066bb9860d3d37
[clangd] Fix a crash when indexing invalid ObjC method declaration

This fix will make us not crash, but ideally we would handle this case
better.

Differential Revision: https://reviews.llvm.org/D94919
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
clang/lib/Sema/SemaCodeComplete.cpp