[PATCH] D44932: [CodeComplete] Fix completion in the middle of ident in ctor lists.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 10 06:48:36 PDT 2018
aaron.ballman added a reviewer: rsmith.
aaron.ballman added inline comments.
================
Comment at: lib/Lex/Lexer.cpp:1667-1668
+ assert(CurPtr < BufferEnd && "eof at completion point");
+ while (isIdentifierBody(*CurPtr))
+ ++CurPtr;
+ BufferPtr = CurPtr;
----------------
You should continue to assert that `CurPtr < BufferEnd` in this loop, no?
Repository:
rC Clang
https://reviews.llvm.org/D44932
More information about the cfe-commits
mailing list