[all-commits] [llvm/llvm-project] 8ba486: [CodeComplete] Tweak completion for else.

Nathan James via All-commits all-commits at lists.llvm.org
Tue Jun 30 08:48:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ba4867c27000ee029ab70a1194050d884fce6c7
      https://github.com/llvm/llvm-project/commit/8ba4867c27000ee029ab70a1194050d884fce6c7
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseStmt.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/test/CodeCompletion/patterns.cpp

  Log Message:
  -----------
  [CodeComplete] Tweak completion for else.

If an `if` statement uses braces for its `then` block, suggest braces for the `else` and `else if` completion blocks, Otherwise don't suggest them.

Reviewed By: sammccall

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




More information about the All-commits mailing list