mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Cleaned up many error codes. For any who is filling in error strings into
lldb_private::Error objects the rules are: - short strings that don't start with a capitol letter unless the name is a class or anything else that is always capitolized - no trailing newline character - should be one line if possible Implemented a first pass at adding "--gdb-format" support to anything that accepts format with optional size/count. llvm-svn: 142999
This commit is contained in:
@@ -57,7 +57,7 @@ class CommandObjectSourceInfo : public CommandObject
|
||||
case 'l':
|
||||
start_line = Args::StringToUInt32 (option_arg, 0);
|
||||
if (start_line == 0)
|
||||
error.SetErrorStringWithFormat("Invalid line number: '%s'.\n", option_arg);
|
||||
error.SetErrorStringWithFormat("invalid line number: '%s'", option_arg);
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
@@ -65,7 +65,7 @@ class CommandObjectSourceInfo : public CommandObject
|
||||
break;
|
||||
|
||||
default:
|
||||
error.SetErrorStringWithFormat("Unrecognized short option '%c'.\n", short_option);
|
||||
error.SetErrorStringWithFormat("unrecognized short option '%c'", short_option);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -169,13 +169,13 @@ class CommandObjectSourceList : public CommandObject
|
||||
case 'l':
|
||||
start_line = Args::StringToUInt32 (option_arg, 0);
|
||||
if (start_line == 0)
|
||||
error.SetErrorStringWithFormat("Invalid line number: '%s'.\n", option_arg);
|
||||
error.SetErrorStringWithFormat("invalid line number: '%s'", option_arg);
|
||||
break;
|
||||
|
||||
case 'c':
|
||||
num_lines = Args::StringToUInt32 (option_arg, 0);
|
||||
if (num_lines == 0)
|
||||
error.SetErrorStringWithFormat("Invalid line count: '%s'.\n", option_arg);
|
||||
error.SetErrorStringWithFormat("invalid line count: '%s'", option_arg);
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
@@ -194,7 +194,7 @@ class CommandObjectSourceList : public CommandObject
|
||||
show_bp_locs = true;
|
||||
break;
|
||||
default:
|
||||
error.SetErrorStringWithFormat("Unrecognized short option '%c'.\n", short_option);
|
||||
error.SetErrorStringWithFormat("unrecognized short option '%c'", short_option);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user