This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix a crash for accessing a null template decl returned by findExplicitReferences.
ClosedPublic

Authored by hokein on Apr 22 2020, 4:45 AM.

Diff Detail

Event Timeline

hokein created this revision.Apr 22 2020, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2020, 4:45 AM
kadircet accepted this revision.Apr 22 2020, 9:04 AM

thanks, lgtm!

clang-tools-extra/clangd/unittests/FindTargetTests.cpp
1293

is namespace required?

This revision is now accepted and ready to land.Apr 22 2020, 9:04 AM
hokein marked an inline comment as done.Apr 22 2020, 11:48 AM
hokein added inline comments.
clang-tools-extra/clangd/unittests/FindTargetTests.cpp
1293

yes, the test expects to look for foo namespace or foo function.

This revision was automatically updated to reflect the committed changes.