This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix hover crashing on null types
ClosedPublic

Authored by kadircet on Dec 12 2019, 1:43 AM.

Diff Detail

Event Timeline

kadircet created this revision.Dec 12 2019, 1:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2019, 1:43 AM
ilya-biryukov added inline comments.Dec 12 2019, 1:55 AM
clang-tools-extra/clangd/Hover.cpp
251

NIT: Replace T.isNull() with !T

clang-tools-extra/clangd/unittests/HoverTests.cpp
517

Why is the type null here?

Wow, ParenListExpr is a really weird construct...

This revision is now accepted and ready to land.Dec 12 2019, 1:57 AM

Unit tests: fail. 60654 tests passed, 1 failed and 726 were skipped.

failed: lld.ELF/linkerscript/provide-empty-section.s

clang-format: pass.

Build artifacts: console-log.txt, CMakeCache.txt, test-results.xml, diff.json

kadircet marked 3 inline comments as done.Dec 12 2019, 2:35 AM
kadircet added inline comments.
clang-tools-extra/clangd/Hover.cpp
251

I don't think ! is defined for QualType.

clang-tools-extra/clangd/unittests/HoverTests.cpp
517

because parentlistexprs, as you've noticed

This revision was automatically updated to reflect the committed changes.
kadircet marked an inline comment as done.