Fix more functions in Args to use StringRef.

This patch also marks the const char* versions as =delete to prevent
their use.  This has the potential to cause build breakages on some
platforms which I can't compile.  I have tested on Windows, Linux,
and OSX.  Best practices for fixing broken callsites are outlined in
Args.h in a comment above the deleted function declarations.

Eventually we can remove these =delete declarations, but for now they
are important to make sure that all implicit conversions from
const char * are manually audited to make sure that they do not invoke a
conversion from nullptr.

llvm-svn: 281919
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index be4f5461..cc1fdf4 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -78,6 +78,7 @@
     ExecutionContext *execution_context) {
   Error error;
 
+  auto option_strref = llvm::StringRef::withNullAsEmpty(option_arg);
   const int short_option = g_option_table[option_idx].short_option;
 
   switch (short_option) {
@@ -91,7 +92,7 @@
   case 'a': {
     bool success;
     bool result;
-    result = Args::StringToBoolean(option_arg, true, &success);
+    result = Args::StringToBoolean(option_strref, true, &success);
     if (!success)
       error.SetErrorStringWithFormat(
           "invalid all-threads value setting: \"%s\"", option_arg);
@@ -101,7 +102,7 @@
 
   case 'i': {
     bool success;
-    bool tmp_value = Args::StringToBoolean(option_arg, true, &success);
+    bool tmp_value = Args::StringToBoolean(option_strref, true, &success);
     if (success)
       ignore_breakpoints = tmp_value;
     else
@@ -112,7 +113,7 @@
 
   case 'j': {
     bool success;
-    bool tmp_value = Args::StringToBoolean(option_arg, true, &success);
+    bool tmp_value = Args::StringToBoolean(option_strref, true, &success);
     if (success)
       allow_jit = tmp_value;
     else
@@ -134,7 +135,7 @@
 
   case 'u': {
     bool success;
-    bool tmp_value = Args::StringToBoolean(option_arg, true, &success);
+    bool tmp_value = Args::StringToBoolean(option_strref, true, &success);
     if (success)
       unwind_on_error = tmp_value;
     else
@@ -168,7 +169,7 @@
 
   case 'X': {
     bool success;
-    bool tmp_value = Args::StringToBoolean(option_arg, true, &success);
+    bool tmp_value = Args::StringToBoolean(option_strref, true, &success);
     if (success)
       auto_apply_fixits = tmp_value ? eLazyBoolYes : eLazyBoolNo;
     else