diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-11-29 12:26:33 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-11-29 12:34:23 +0100 |
commit | d752b75d7fce2a77bb7656d33d2aa062372dc014 (patch) | |
tree | f1471ab76cad461aedf209b5523e60404f314592 /lldb/source/Commands | |
parent | d1d6049e9d6600f28746379290705b02ffb52d4b (diff) | |
download | bcm5719-llvm-d752b75d7fce2a77bb7656d33d2aa062372dc014.tar.gz bcm5719-llvm-d752b75d7fce2a77bb7656d33d2aa062372dc014.zip |
[lldb][NFC] Simplify regex_chars in CommandCompletions
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r-- | lldb/source/Commands/CommandCompletions.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp index d325b724a38..b382e26e2b7 100644 --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -413,10 +413,7 @@ void CommandCompletions::SourceFileCompleter::DoCompletion( // SymbolCompleter static bool regex_chars(const char comp) { - return (comp == '[' || comp == ']' || comp == '(' || comp == ')' || - comp == '{' || comp == '}' || comp == '+' || comp == '.' || - comp == '*' || comp == '|' || comp == '^' || comp == '$' || - comp == '\\' || comp == '?'); + return llvm::StringRef("[](){}+.*|^$\\?").contains(comp); } CommandCompletions::SymbolCompleter::SymbolCompleter( |