[all-commits] [llvm/llvm-project] 23ef8b: [clangd][CodeComplete] Improve FunctionCanBeCall

zyn0217 via All-commits all-commits at lists.llvm.org
Thu Sep 28 06:42:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23ef8bf9c0f338ee073c6c1b553c42e46d2f22ad
      https://github.com/llvm/llvm-project/commit/23ef8bf9c0f338ee073c6c1b553c42e46d2f22ad
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2023-09-28 (Thu, 28 Sep 2023)

  Changed paths:
    M clang-tools-extra/clangd/CodeComplete.cpp
    M clang-tools-extra/clangd/CodeCompletionStrings.cpp
    M clang-tools-extra/clangd/CodeCompletionStrings.h
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang-tools-extra/clangd/unittests/CodeCompletionStringsTests.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/test/CodeCompletion/member-access.cpp
    M clang/unittests/Sema/CodeCompleteTest.cpp

  Log Message:
  -----------
  [clangd][CodeComplete] Improve FunctionCanBeCall

>From two aspects:

- For function templates, emit additional template argument
placeholders in the context where it can't be a call in order
to specify an instantiation explicitly.

- Consider expressions with base type specifier such as
'Derived().Base::foo^' a function call.

Reviewed By: nridge

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




More information about the All-commits mailing list