SuccessChanges

Summary

  1. Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion."" (details)
Commit 985deba9319be464673c1002767f8a3ec597480d by usx
Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion.""

We intend to replace heuristics based code completion ranking with a Decision Forest Model.

This patch introduces a format for representing the model and an inference runtime that is code-generated at build time.
- Forest.json contains all the trees as an array of trees.
- Features.json describes the features to be used.
- Codegen file takes the above two files and generates CompletionModel containing Feature struct and corresponding Evaluate function.
   The Evaluate function maps a feature to a real number describing the relevance of this candidate.
- The codegen is part of build system and these files are generated at build time.
- Proposes a way to test the generated runtime using a test model.
  - Replicates the model structure in unittests.
  - unittest tests both the test model (for correct tree traversal) and the real model (for sanity).

This reverts commit 549e55b3d5634870aa9d42135f51ad46a6a0e347.
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/forest.json
The file was addedclang-tools-extra/clangd/quality/model/features.json
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/features.json
The file was addedclang-tools-extra/clangd/quality/model/forest.json
The file was addedclang-tools-extra/clangd/quality/README.md
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/CategoricalFeature.h
The file was addedclang-tools-extra/clangd/quality/CompletionModelCodegen.py
The file was addedclang-tools-extra/clangd/unittests/DecisionForestTests.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt
The file was addedclang-tools-extra/clangd/quality/CompletionModel.cmake