[ScriptInterpreterPython] find_first_of -> find (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 24 Apr 2019 20:40:24 +0000 (20:40 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 24 Apr 2019 20:40:24 +0000 (20:40 +0000)
Follow up to r357198.

llvm-svn: 359138

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

index 174c94a..0482cea 100644 (file)
@@ -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;