A few minor stylistic cleanups in StringExtractor.
authorZachary Turner <zturner@google.com>
Tue, 30 Aug 2016 19:47:05 +0000 (19:47 +0000)
committerZachary Turner <zturner@google.com>
Tue, 30 Aug 2016 19:47:05 +0000 (19:47 +0000)
commit2d240d00dabf49c7688a4f564adc410dae187500
tree3697e3c6d2aead0de6b31a782e8c9eccdda20c52
parent0af717970c1f023e8ac327aa5ecde6c369b069db
A few minor stylistic cleanups in StringExtractor.

Makes Peek() return a StringRef instead of a const char*.

This leads to a few callers of Peek() being able to be made a
little nicer (for example using StringRef member functions instead
of c-style strncmp and related functions) and generally safer
usage.

llvm-svn: 280139
lldb/include/lldb/Core/ArchSpec.h
lldb/include/lldb/Interpreter/Args.h
lldb/include/lldb/Utility/StringExtractor.h
lldb/source/Core/ArchSpec.cpp
lldb/source/Interpreter/Args.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Utility/StringExtractor.cpp
lldb/unittests/Utility/StringExtractorTest.cpp