Details
- Reviewers
 hokein - Commits
 - rGf800ac830941: [clangd] Fix hover crash on broken code
 
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
|---|---|---|
| 2447 | IIUC, x refers to an undefined variable right? might be renamed it to undefine. Instead of creating a new test, maybe add this no-crash test to TEST(Hover, NoHover) {, looks like a good fit there.  | |
- s/x/undefined
 
| clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
|---|---|---|
| 2447 | 
 Done. 
 This produces a hover though. I think we should collect all the cases about crash-ness here, independent of whether they produce a hover or not.  | |
IIUC, x refers to an undefined variable right? might be renamed it to undefine.
Instead of creating a new test, maybe add this no-crash test to TEST(Hover, NoHover) {, looks like a good fit there.