This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix a crash while printing Template Arguments
AbandonedPublic

Authored by kadircet on Mar 20 2019, 8:48 AM.

Details

Reviewers
ilya-biryukov

Event Timeline

kadircet created this revision.Mar 20 2019, 8:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2019, 8:48 AM
ilya-biryukov accepted this revision.Mar 20 2019, 10:05 AM

LGTM

clangd/AST.cpp
95

NIT: maybe shorten the comment?
Something like // FIXME: Fix cases when getTypeAsWritten returns null, e.g. friend decls.

unittests/clangd/SymbolCollectorTests.cpp
1226

NIT: or something like getTypeAsWritten is missing for friend declaration, this should be fixed in the AST>

This revision is now accepted and ready to land.Mar 20 2019, 10:05 AM
Eugene.Zelenko added inline comments.
clangd/AST.cpp
86–96

Return type is not obvious, so auto should not be used.

kadircet updated this revision to Diff 194470.Apr 10 2019, 3:39 AM
kadircet marked 3 inline comments as done.
  • Address comments
kadircet abandoned this revision.Apr 12 2019, 3:01 AM

It is incorporated into D59639