Go to file
Sam McCall c5707b6c36 [clangd] Extract scoring/ranking logic, and shave yaks.
Summary:
Code completion scoring was embedded in CodeComplete.cpp, which is bad:
 - awkward to test. The mechanisms (extracting info from index/sema) can be
   unit-tested well, the policy (scoring) should be quantitatively measured.
   Neither was easily possible, and debugging was hard.
   The intermediate signal struct makes this easier.
 - hard to reuse. This is a bug in workspaceSymbols: it just presents the
   results in the index order, which is not sorted in practice, it needs to rank
   them!
   Also, index implementations care about scoring (both query-dependent and
   independent) in order to truncate result lists appropriately.

The main yak shaved here is the build() function that had 3 variants across
unit tests is unified in TestTU.h (rather than adding a 4th variant).

Reviewers: ilya-biryukov

Subscribers: klimek, mgorny, ioeric, MaskRay, jkorous, mgrang, cfe-commits

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

llvm-svn: 332378
2018-05-15 17:43:27 +00:00
clang update two comments as suggested on https://reviews.llvm.org/D46843 2018-05-15 16:37:00 +00:00
clang-tools-extra [clangd] Extract scoring/ranking logic, and shave yaks. 2018-05-15 17:43:27 +00:00
compiler-rt [sanitizer] Intercept __pthread_mutex_lock and __pthread_mutex_unlock 2018-05-15 01:39:25 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc rootn: Use denormal path only 2018-05-15 04:22:43 +00:00
libcxx Update XFAIL so apple-clang-9.0 is the last version not implementing Core 2094. 2018-05-14 19:45:24 +00:00
libcxxabi Fix test failure for missing _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS 2018-05-03 12:44:27 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld [lld] Mitigate relocation overflow [part 1 of 2]. 2018-05-15 17:02:35 +00:00
lldb Reapply "Remove Process references from the Host module" 2018-05-15 13:42:26 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm AMDGPU: Add disasm tests for deep learning instructions + fix v_fmac_f32 disasm 2018-05-15 17:39:13 +00:00
openmp [OpenMP][libomptarget] Add function for checking SPMD mode 2018-05-15 15:16:43 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [SI] Create Scop Name lazily 2018-05-15 14:53:25 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.