[all-commits] [llvm/llvm-project] eba3ee: [clangd] Run code completion on each token coverd ...

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Fri Jun 4 08:52:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eba3ee04d450230f7ac1f88b1abd7b09c600c82d
      https://github.com/llvm/llvm-project/commit/eba3ee04d450230f7ac1f88b1abd7b09c600c82d
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2021-06-04 (Fri, 04 Jun 2021)

  Changed paths:
    M clang-tools-extra/clangd/tool/Check.cpp
    M clang-tools-extra/clangd/tool/ClangdMain.cpp

  Log Message:
  -----------
  [clangd] Run code completion on each token coverd by --check-lines

In --check mode we do not run code completion because it is too slow,
especially on larger files. With the introducation of --check-lines we
can narrow down the scope and thus we can afford to do code completion.

We vlog() the top completion result, but that's not really the point.
The most value will come from being able to reproduce crashes that occur
during code completion and require preamble build or index (and thus are
more difficult to reproduce with -code-complete-at).

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




More information about the All-commits mailing list