================
@@ -15,13 +15,29 @@
 #include "lldb/Target/Target.h"
 #include "lldb/Utility/LLDBLog.h"
 #include "lldb/Utility/Log.h"
-#include "lldb/Utility/StringLexer.h"
 
 #include "clang/Basic/TargetInfo.h"
 
 #include <optional>
 #include <vector>
 
+static char popChar(llvm::StringRef &str) {
+  const char c = str.front();
+
+  str = str.drop_front();
+
+  return c;
+}
+
+static bool consumeChar(llvm::StringRef &str, char c) {
----------------
felipepiovezan wrote:

StringRef has a consume front method:

bool consume_front (StringRef Prefix)

Returns true if this 
[StringRef](https://llvm.org/doxygen/classllvm_1_1StringRef.html) has the given 
prefix and removes that prefix.


https://github.com/llvm/llvm-project/pull/172466
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to