[PATCH] D51038: [clang] Make sure codecompletion is called for calls even when inside a token.
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 10 03:30:03 PDT 2018
ilya-biryukov added inline comments.
================
Comment at: include/clang/Parse/Parser.h:217
+ /// Gets set to true after calling ProduceSignaturehelp, it is for a
+ /// workaround to make sure ProduceSignatureHelp is only called at the deepest
----------------
s/ProduceSignaturehelp/ProduceSignatureHelp
================
Comment at: lib/Parse/ParseDecl.cpp:2325
+ if (ThisVarDecl && PP.isCodeCompletionReached())
+ ConstructorCompleter(true);
Actions.ActOnInitializerError(ThisDecl);
----------------
Maybe call signature help here directly and remove param from lamdba?
Having a parameter in lambda adds both makes the lamdba body more complicated and adds extra state that we have to reason about.
Same for the other calls.
Repository:
rC Clang
https://reviews.llvm.org/D51038
More information about the cfe-commits
mailing list