diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-04-24 20:40:24 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-04-24 20:40:24 +0000 |
commit | 10b113e8aa6002223e629376d9ce6a41080997c2 (patch) | |
tree | 91976e25069a0a60fee37d91226c4ee35a62c38c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 54c8182a3f619e272cd9a07e706752af8e62da99 (diff) | |
download | bcm5719-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.cpp | 3 |
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; |