forked from OSchip/llvm-project
[lldb][NFC] Simplify regex_chars in CommandCompletions
This commit is contained in:
parent
d1d6049e9d
commit
d752b75d7f
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue