]> granicus.if.org Git - clang/commit
[clang] Make sure codecompletion is called for calls even when inside a token.
authorKadir Cetinkaya <kadircet@google.com>
Mon, 10 Sep 2018 13:46:28 +0000 (13:46 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 10 Sep 2018 13:46:28 +0000 (13:46 +0000)
commit9a74d9fcc63fc7eb3dfa1cf86891ad9f9f473030
treecdbe7ee54e2df31751d5d546fae0fb76e785bdd9
parentcd3fec58a47ab13427d4babad145387a65482146
[clang] Make sure codecompletion is called for calls even when inside a token.

Summary:
Currently CodeCompleteCall only gets called after a comma or parantheses. This
patch makes sure it is called even at the cases like:
```foo(1^);```

Reviewers: ilya-biryukov, ioeric, hokein

Reviewed By: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341824 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseOpenMP.cpp
lib/Sema/CodeCompleteConsumer.cpp
test/CodeCompletion/function-overloads.cpp [new file with mode: 0644]
test/Index/complete-block-property-assignment.m