[all-commits] [llvm/llvm-project] e98d3b: [clang] Enable code completion of designated initi...
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Tue Dec 1 03:12:11 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e98d3be11c2991c7d446d5c7c714d0384f3b7432
https://github.com/llvm/llvm-project/commit/e98d3be11c2991c7d446d5c7c714d0384f3b7432
Author: Kadir Cetinkaya <kadircet at google.com>
Date: 2020-12-01 (Tue, 01 Dec 2020)
Changed paths:
M clang/lib/Parse/ParseExpr.cpp
M clang/test/CodeCompletion/desig-init.cpp
Log Message:
-----------
[clang] Enable code completion of designated initializers in Compound Literal Expressions
PreferedType were not set when parsing compound literals, hence
designated initializers were not available as code completion suggestions.
This patch sets the preferedtype to parsed type for the following initializer
list.
Fixes https://github.com/clangd/clangd/issues/142.
Differential Revision: https://reviews.llvm.org/D92370
More information about the All-commits
mailing list