[all-commits] [llvm/llvm-project] 438b5b: [clangd] Use ML Code completion ranking as default.

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Tue Mar 2 01:08:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 438b5bb05a429d697674088d400e4800c1108658
      https://github.com/llvm/llvm-project/commit/438b5bb05a429d697674088d400e4800c1108658
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2021-03-02 (Tue, 02 Mar 2021)

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

  Log Message:
  -----------
  [clangd] Use ML Code completion ranking as default.

This makes code completion use a Decision Forest based ranking algorithm to rank
completion candidates. [Esitmated 6% accuracy boost]. This was
previously hidden behind the flag --ranking-model=decision_forest. This
patch makes it the default ranking algorithm.

Note: this is a generic model, not specialized for any particular
project. clangd does not collect or upload data to train code completion.

Also treat Keywords separately as they are not recorded by the training set generator.

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




More information about the All-commits mailing list