From 10b113e8aa6002223e629376d9ce6a41080997c2 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 24 Apr 2019 20:40:24 +0000 Subject: [ScriptInterpreterPython] find_first_of -> find (NFC) Follow up to r357198. llvm-svn: 359138 --- .../Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 174c94a7bf6c..0482cea95586 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -2869,7 +2869,8 @@ bool ScriptInterpreterPythonImpl::IsReservedWord(const char *word) { // filter out a few characters that would just confuse us and that are // clearly not keyword material anyway - if (word_sr.find_first_of("'\"") != llvm::StringRef::npos) + if (word_sr.find('"') != llvm::StringRef::npos || + word_sr.find('\'') != llvm::StringRef::npos) return false; StreamString command_stream; -- cgit v1.2.3