[CodeComplete] Add a trailing semicolons to some pattern completions
authorIlya Biryukov <ibiryukov@google.com>
Mon, 6 May 2019 13:18:00 +0000 (13:18 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 6 May 2019 13:18:00 +0000 (13:18 +0000)
commit15a37ebb180a41432f05d201a2059470558b2cc5
tree49e46b1aadb0551404819d098f42ab602080556c
parentacbaa496ec8ea63f2315e0fdc7ed86c888a21a53
[CodeComplete] Add a trailing semicolons to some pattern completions

Summary:
Where semicolon is required in any case. Here's a list of completions
that now have a semicolon:
  - namespace <name> = <target>;
  - using namespace <name>;
  - using <qualifier>::<name>;
  - continue;
  - break;
  - goto <label>;
  - return;
  - return <expression>;

Reviewers: gribozavr

Reviewed By: gribozavr

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 360042
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/ordinary-name-cxx11.cpp
clang/test/CodeCompletion/ordinary-name.cpp
clang/test/CodeCompletion/patterns.cpp [new file with mode: 0644]