hanchenye-llvm-project/clang-tools-extra/clangd/index
Sam McCall 3bf9b6d920 [clangd] dexp tool uses llvm::cl to parse its flags.
Summary:
We can use cl::ResetCommandLineParser() to support different types of
command-lines, as long as we're careful about option lifetimes.
(I tried using subcommands, but the error messages were bad)
I found a mostly-reasonable pattern to isolate the fiddly parts.

Added -scope and -limit flags to the `find` command to demonstrate.
(Note that scope support seems to be broken in dex?)

Fixed symbol lookup to parse symbol IDs.

Caveats:
 - with command help (e.g. `find -help`), you also get some spam
   about required arguments. This is a bug in llvm::cl, which prints
   these to errs() rather than the designated stream.

Reviewers: kbobyrev

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

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

llvm-svn: 342456
2018-09-18 09:49:57 +00:00
..
dex [clangd] dexp tool uses llvm::cl to parse its flags. 2018-09-18 09:49:57 +00:00
CanonicalIncludes.cpp [clangd] Canonicalize include paths in clangd. 2018-09-07 09:40:36 +00:00
CanonicalIncludes.h [clangd] Get rid of regexes in CanonicalIncludes 2018-08-22 13:51:19 +00:00
FileIndex.cpp [clangd] Adapt API change after 342451. 2018-09-18 08:52:14 +00:00
FileIndex.h [clangd] Canonicalize include paths in clangd. 2018-09-07 09:40:36 +00:00
Index.cpp [clangd] Cleanup FuzzyFindRequest filtering limit semantics 2018-09-13 14:27:03 +00:00
Index.h [clangd] Cleanup FuzzyFindRequest filtering limit semantics 2018-09-13 14:27:03 +00:00
MemIndex.cpp [clangd] Cleanup FuzzyFindRequest filtering limit semantics 2018-09-13 14:27:03 +00:00
MemIndex.h [clangd] Add symbol slab size to index memory consumption estimates 2018-09-10 11:46:07 +00:00
Merge.cpp [clangd] Canonicalize include paths in clangd. 2018-09-07 09:40:36 +00:00
Merge.h [clangd] SymbolOccurrences -> Refs and cleanup 2018-09-04 14:39:56 +00:00
Serialization.cpp [clangd] Canonicalize include paths in clangd. 2018-09-07 09:40:36 +00:00
Serialization.h [clangd] Define a compact binary serialization fomat for symbol slab/index. 2018-09-04 16:16:50 +00:00
SymbolCollector.cpp [clangd] Get rid of AST matchers in SymbolCollector. NFC 2018-09-17 07:43:49 +00:00
SymbolCollector.h [clangd] SymbolOccurrences -> Refs and cleanup 2018-09-04 14:39:56 +00:00
SymbolYAML.cpp [clangd] NFC: Rename DexIndex to Dex 2018-09-10 08:23:53 +00:00
SymbolYAML.h [clangd] Implement proximity path boosting for Dex 2018-09-06 12:54:43 +00:00