llvm-project/clang/lib
Ilya Biryukov ef4ece75fd [CodeComplete] Fix completion in the middle of ident in ctor lists.
Summary:
The example that was broken before (^ designates completion points):

    class Foo {
      Foo() : fie^ld^() {} // no completions were provided here.
      int field;
    };

To fix it we don't cut off lexing after an identifier followed by code
completion token is lexed. Instead we skip the rest of identifier and
continue lexing.
This is consistent with behavior of completion when completion token is
right before the identifier.

Reviewers: sammccall, aaron.ballman, bkramer, sepavloff, arphaman, rsmith

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 330833
2018-04-25 15:13:34 +00:00
..
ARCMigrate Fix typos in clang 2018-04-06 15:14:32 +00:00
AST [c++2a] [concepts] Add rudimentary parsing support for template concept declarations 2018-04-25 02:42:26 +00:00
ASTMatchers Fix typos in clang 2018-04-06 15:14:32 +00:00
Analysis Fix -Wunused-variable warnings after r330377. 2018-04-20 09:47:03 +00:00
Basic [CUDA] Enable CUDA compilation with CUDA-9.2 2018-04-24 18:23:19 +00:00
CodeGen [c++2a] [concepts] Add rudimentary parsing support for template concept declarations 2018-04-25 02:42:26 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Revert "[Driver] Android triples are not aliases for other triples." 2018-04-24 22:06:40 +00:00
Edit [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Format [clang-format] Start formatting cpp code in raw strings in google style 2018-04-25 14:56:19 +00:00
Frontend [HIP] Add predefined macros __HIPCC__ and __HIP_DEVICE_COMPILE__ 2018-04-25 13:33:19 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers [CUDA] Enable CUDA compilation with CUDA-9.2 2018-04-24 18:23:19 +00:00
Index [index] Fix methods that take a shared_ptr to just take a reference. 2018-04-23 14:30:21 +00:00
Lex [CodeComplete] Fix completion in the middle of ident in ctor lists. 2018-04-25 15:13:34 +00:00
Parse Fix buildbot problems after rC330794 2018-04-25 09:04:12 +00:00
Rewrite [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Sema [c++2a] [concepts] Add rudimentary parsing support for template concept declarations 2018-04-25 02:42:26 +00:00
Serialization [c++2a] [concepts] Add rudimentary parsing support for template concept declarations 2018-04-25 02:42:26 +00:00
StaticAnalyzer [analyzer] Add support for the note diagnostic pieces to plist output format. 2018-04-24 20:45:48 +00:00
Tooling [Tooling] Correct the "-std" compile command option. 2018-04-11 09:18:18 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00