summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-04-24 20:40:24 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-04-24 20:40:24 +0000
commit10b113e8aa6002223e629376d9ce6a41080997c2 (patch)
tree91976e25069a0a60fee37d91226c4ee35a62c38c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent54c8182a3f619e272cd9a07e706752af8e62da99 (diff)
downloadbcm5719-llvm-10b113e8aa6002223e629376d9ce6a41080997c2.tar.gz
bcm5719-llvm-10b113e8aa6002223e629376d9ce6a41080997c2.zip
[ScriptInterpreterPython] find_first_of -> find (NFC)
Follow up to r357198. llvm-svn: 359138
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index 174c94a7bf6..0482cea9558 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;
OpenPOWER on IntegriCloud