Consistency on the tab/space

llvm-svn: 213236
This commit is contained in:
Sylvestre Ledru 2014-07-17 08:40:35 +00:00
parent 6aac507e7d
commit c790515c8b
1 changed files with 18 additions and 18 deletions

View File

@ -99,10 +99,10 @@ sub DieDiag {
if (grep /^--help-checkers$/, @ARGV) { if (grep /^--help-checkers$/, @ARGV) {
my @options = qx($0 -h); my @options = qx($0 -h);
foreach (@options) { foreach (@options) {
next unless /^ \+/; next unless /^ \+/;
s/^\s*//; s/^\s*//;
my ($sign, $name, @text) = split ' ', $_; my ($sign, $name, @text) = split ' ', $_;
print $name, $/ if $sign eq '+'; print $name, $/ if $sign eq '+';
} }
exit 0; exit 0;
} }
@ -603,7 +603,7 @@ function CopyCheckedStateToCheckButtons(SummaryCheckButton) {
if(Inputs[i] != SummaryCheckButton) { if(Inputs[i] != SummaryCheckButton) {
Inputs[i].checked = SummaryCheckButton.checked; Inputs[i].checked = SummaryCheckButton.checked;
Inputs[i].onclick(); Inputs[i].onclick();
} }
} }
} }
} }
@ -1562,14 +1562,14 @@ while (@ARGV) {
next; next;
} }
if ($arg eq "--use-analyzer") { if ($arg eq "--use-analyzer") {
shift @ARGV; shift @ARGV;
$AnalyzerDiscoveryMethod = shift @ARGV; $AnalyzerDiscoveryMethod = shift @ARGV;
next; next;
} }
if ($arg =~ /^--use-analyzer=(.+)$/) { if ($arg =~ /^--use-analyzer=(.+)$/) {
shift @ARGV; shift @ARGV;
$AnalyzerDiscoveryMethod = $1; $AnalyzerDiscoveryMethod = $1;
next; next;
} }
if ($arg eq "--keep-empty") { if ($arg eq "--keep-empty") {
shift @ARGV; shift @ARGV;
@ -1602,17 +1602,17 @@ if (!defined $AnalyzerDiscoveryMethod) {
if (!defined $Clang || ! -x $Clang) { if (!defined $Clang || ! -x $Clang) {
if (!$RequestDisplayHelp && !$ForceDisplayHelp) { if (!$RequestDisplayHelp && !$ForceDisplayHelp) {
DieDiag("error: Cannot find an executable 'clang' relative to scan-build." . DieDiag("error: Cannot find an executable 'clang' relative to scan-build." .
" Consider using --use-analyzer to pick a version of 'clang' to use for static analysis.\n"); " Consider using --use-analyzer to pick a version of 'clang' to use for static analysis.\n");
} }
} }
} }
else { else {
if ($AnalyzerDiscoveryMethod =~ /^[Xx]code$/) { if ($AnalyzerDiscoveryMethod =~ /^[Xx]code$/) {
my $xcrun = `which xcrun`; my $xcrun = `which xcrun`;
chomp $xcrun; chomp $xcrun;
if ($xcrun eq "") { if ($xcrun eq "") {
DieDiag("Cannot find 'xcrun' to find 'clang' for analysis.\n"); DieDiag("Cannot find 'xcrun' to find 'clang' for analysis.\n");
} }
$Clang = `$xcrun -toolchain XcodeDefault -find clang`; $Clang = `$xcrun -toolchain XcodeDefault -find clang`;
chomp $Clang; chomp $Clang;
if ($Clang eq "") { if ($Clang eq "") {
@ -1621,9 +1621,9 @@ else {
} }
else { else {
$Clang = $AnalyzerDiscoveryMethod; $Clang = $AnalyzerDiscoveryMethod;
if (!defined $Clang or not -x $Clang) { if (!defined $Clang or not -x $Clang) {
DieDiag("Cannot find an executable clang at '$AnalyzerDiscoveryMethod'\n"); DieDiag("Cannot find an executable clang at '$AnalyzerDiscoveryMethod'\n");
} }
} }
} }