[all-commits] [llvm/llvm-project] eb4ab3: [CodeComplete] Guess type for designated initializers

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Feb 4 13:18:04 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb4ab3358cd4dc834a761191b5531b38114f7b13
      https://github.com/llvm/llvm-project/commit/eb4ab3358cd4dc834a761191b5531b38114f7b13
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseInit.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/test/CodeCompletion/desig-init.cpp

  Log Message:
  -----------
  [CodeComplete] Guess type for designated initializers

This enables:
 - completion in { .x.^ }
 - completion in { .x = { .^ } }
 - type-based ranking of candidates for { .x = ^ }

Differential Revision: https://reviews.llvm.org/D96058




More information about the All-commits mailing list