diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
| commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
| tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /source/Interpreter/CommandOptionValidators.cpp | |
| parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) | |
Notes
Diffstat (limited to 'source/Interpreter/CommandOptionValidators.cpp')
| -rw-r--r-- | source/Interpreter/CommandOptionValidators.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/source/Interpreter/CommandOptionValidators.cpp b/source/Interpreter/CommandOptionValidators.cpp index 7d66de53c0b4..1e614a958c76 100644 --- a/source/Interpreter/CommandOptionValidators.cpp +++ b/source/Interpreter/CommandOptionValidators.cpp @@ -15,25 +15,23 @@ using namespace lldb; using namespace lldb_private; -bool PosixPlatformCommandOptionValidator::IsValid(Platform &platform, const ExecutionContext &target) const -{ - llvm::Triple::OSType os = platform.GetSystemArchitecture().GetTriple().getOS(); - switch (os) - { - // Are there any other platforms that are not POSIX-compatible? - case llvm::Triple::Win32: - return false; - default: - return true; - } +bool PosixPlatformCommandOptionValidator::IsValid( + Platform &platform, const ExecutionContext &target) const { + llvm::Triple::OSType os = + platform.GetSystemArchitecture().GetTriple().getOS(); + switch (os) { + // Are there any other platforms that are not POSIX-compatible? + case llvm::Triple::Win32: + return false; + default: + return true; + } } -const char* PosixPlatformCommandOptionValidator::ShortConditionString() const -{ - return "POSIX"; +const char *PosixPlatformCommandOptionValidator::ShortConditionString() const { + return "POSIX"; } -const char* PosixPlatformCommandOptionValidator::LongConditionString() const -{ - return "Option only valid for POSIX-compliant hosts."; +const char *PosixPlatformCommandOptionValidator::LongConditionString() const { + return "Option only valid for POSIX-compliant hosts."; } |
