[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.
    Sam McCall via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Jun  6 23:50:42 PDT 2018
    
    
  
sammccall added inline comments.
================
Comment at: clangd/FindSymbols.cpp:20
 
+#define DEBUG_TYPE "FindSymbols"
+
----------------
malaperle wrote:
> nit: I don't think this is used. Remove?
This is consumed by the LLVM_DEBUG macro. You can enable program-wide debug output with -debug, but much more useful is -debug-only=somestring which will only enable LLVM_DEBUG sections in files with the matching DEBUG_TYPE.
So here if you get mysterious ranking of `workspace/symbol` results, you can run clangd with `-debug-only=FindSymbols` and get the signals and component scores dumped to stderr.
Repository:
  rCTE Clang Tools Extra
https://reviews.llvm.org/D47821
    
    
More information about the cfe-commits
mailing list