summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-07-17 08:40:35 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-07-17 08:40:35 +0000
commitc790515c8b2f395cc259030532992a4497b5daa8 (patch)
tree659957f251797361bc721f9f6f0316afc88227d0
parent6aac507e7dcce727cc607b656a4d95ec5798dceb (diff)
downloadbcm5719-llvm-c790515c8b2f395cc259030532992a4497b5daa8.tar.gz
bcm5719-llvm-c790515c8b2f395cc259030532992a4497b5daa8.zip
Consistency on the tab/space
llvm-svn: 213236
-rwxr-xr-xclang/tools/scan-build/scan-build36
1 files changed, 18 insertions, 18 deletions
diff --git a/clang/tools/scan-build/scan-build b/clang/tools/scan-build/scan-build
index 585efd51697..153be2dca1c 100755
--- a/clang/tools/scan-build/scan-build
+++ b/clang/tools/scan-build/scan-build
@@ -99,10 +99,10 @@ sub DieDiag {
if (grep /^--help-checkers$/, @ARGV) {
my @options = qx($0 -h);
foreach (@options) {
- next unless /^ \+/;
- s/^\s*//;
- my ($sign, $name, @text) = split ' ', $_;
- print $name, $/ if $sign eq '+';
+ next unless /^ \+/;
+ s/^\s*//;
+ my ($sign, $name, @text) = split ' ', $_;
+ print $name, $/ if $sign eq '+';
}
exit 0;
}
@@ -603,7 +603,7 @@ function CopyCheckedStateToCheckButtons(SummaryCheckButton) {
if(Inputs[i] != SummaryCheckButton) {
Inputs[i].checked = SummaryCheckButton.checked;
Inputs[i].onclick();
- }
+ }
}
}
}
@@ -1562,14 +1562,14 @@ while (@ARGV) {
next;
}
if ($arg eq "--use-analyzer") {
- shift @ARGV;
- $AnalyzerDiscoveryMethod = shift @ARGV;
- next;
+ shift @ARGV;
+ $AnalyzerDiscoveryMethod = shift @ARGV;
+ next;
}
if ($arg =~ /^--use-analyzer=(.+)$/) {
shift @ARGV;
- $AnalyzerDiscoveryMethod = $1;
- next;
+ $AnalyzerDiscoveryMethod = $1;
+ next;
}
if ($arg eq "--keep-empty") {
shift @ARGV;
@@ -1602,17 +1602,17 @@ if (!defined $AnalyzerDiscoveryMethod) {
if (!defined $Clang || ! -x $Clang) {
if (!$RequestDisplayHelp && !$ForceDisplayHelp) {
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 {
if ($AnalyzerDiscoveryMethod =~ /^[Xx]code$/) {
- my $xcrun = `which xcrun`;
+ my $xcrun = `which xcrun`;
chomp $xcrun;
- if ($xcrun eq "") {
- DieDiag("Cannot find 'xcrun' to find 'clang' for analysis.\n");
- }
+ if ($xcrun eq "") {
+ DieDiag("Cannot find 'xcrun' to find 'clang' for analysis.\n");
+ }
$Clang = `$xcrun -toolchain XcodeDefault -find clang`;
chomp $Clang;
if ($Clang eq "") {
@@ -1621,9 +1621,9 @@ else {
}
else {
$Clang = $AnalyzerDiscoveryMethod;
- if (!defined $Clang or not -x $Clang) {
- DieDiag("Cannot find an executable clang at '$AnalyzerDiscoveryMethod'\n");
- }
+ if (!defined $Clang or not -x $Clang) {
+ DieDiag("Cannot find an executable clang at '$AnalyzerDiscoveryMethod'\n");
+ }
}
}
OpenPOWER on IntegriCloud