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. |
clang-tidy: warning: 'auto *ND' can be declared as 'const auto *ND' [llvm-qualified-auto]
not useful