[all-commits] [llvm/llvm-project] 158af0: [clangd] Refactor code completion signal's utility...

UTKARSH SAXENA via All-commits all-commits at lists.llvm.org
Wed Sep 23 07:15:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 158af0d3d165c0382a6a291e81ffecf0b18ffe77
      https://github.com/llvm/llvm-project/commit/158af0d3d165c0382a6a291e81ffecf0b18ffe77
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M clang-tools-extra/clangd/Quality.cpp
    M clang-tools-extra/clangd/Quality.h

  Log Message:
  -----------
  [clangd] Refactor code completion signal's utility properties.

Current implementation of heuristic-based scoring function also contains
computation of derived signals (e.g. whether name contains a word from
context, computing file distances, scope distances.)
This is an attempt to separate out the logic for computation of derived
signals from the scoring function.
This will allow us to have a clean API for scoring functions that will
take only concrete code completion signals as input.

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




More information about the All-commits mailing list