This is an archive of the discontinued LLVM Phabricator instance.

[clang][CodeComplete] Fix crash on ParenListExprs
ClosedPublic

Authored by kadircet on Feb 3 2021, 3:46 AM.

Diff Detail

Event Timeline

kadircet requested review of this revision.Feb 3 2021, 3:46 AM
kadircet created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2021, 3:46 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
kadircet updated this revision to Diff 321054.Feb 3 2021, 4:28 AM
  • Also handle memberrefexpr case.

Fixes https://github.com/clangd/clangd/issues/676.

hokein accepted this revision.Feb 5 2021, 5:59 AM
hokein added inline comments.
clang/lib/Sema/SemaCodeComplete.cpp
5191

mention that why we specialize ParentListExpr -- ParenListExprs don't have a predefined type

I think we won't (hopefully) have a 0-children ParenListExpr.

This revision is now accepted and ready to land.Feb 5 2021, 5:59 AM
kadircet updated this revision to Diff 322077.Feb 8 2021, 4:17 AM
kadircet marked an inline comment as done.
  • Update comments
This revision was landed with ongoing or failed builds.Feb 8 2021, 4:21 AM
This revision was automatically updated to reflect the committed changes.