summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2012-04-19 13:26:28 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2012-04-19 13:26:28 (GMT)
commit5da8529d9c0e5fa2ad586c0608b5a936286cf9a2 (patch)
treeb9abd7f18c7ccdf9c5c7ffa6efe77c88b5dee362
parent16cab01cccf0b3ccadb150cd54f760929b3cc07e (diff)
downloadNinja-5da8529d9c0e5fa2ad586c0608b5a936286cf9a2.zip
Ninja-5da8529d9c0e5fa2ad586c0608b5a936286cf9a2.tar.gz
Ninja-5da8529d9c0e5fa2ad586c0608b5a936286cf9a2.tar.bz2
Remove trailing white spaces.
-rw-r--r--src/build.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/build.cc b/src/build.cc
index a2e4f64..6063cec 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -387,7 +387,7 @@ void Plan::CleanNode(BuildLog* build_log, Node* node) {
if ((*ni)->mtime() > most_recent_input)
most_recent_input = (*ni)->mtime();
string command = (*ei)->EvaluateCommand(true);
-
+
// Now, recompute the dirty state of each output.
bool all_outputs_clean = true;
for (vector<Node*>::iterator ni = (*ei)->outputs_.begin();
@@ -461,7 +461,7 @@ bool RealCommandRunner::StartCommand(Edge* edge) {
if (!subproc)
return false;
subproc_to_edge_.insert(make_pair(subproc, edge));
-
+
return true;
}
@@ -656,7 +656,7 @@ bool Builder::Build(string* err) {
*err = "subcommand failed";
} else if (failures_allowed < config_.failures_allowed)
*err = "cannot make progress due to previous errors";
- else
+ else
*err = "stuck [this is a bug]";
return false;
@@ -679,11 +679,11 @@ bool Builder::StartEdge(Edge* edge, string* err) {
if (!disk_interface_->MakeDirs((*i)->path()))
return false;
}
-
+
// Create response file, if needed
// XXX: this may also block; do we care?
if (edge->HasRspFile()) {
- if (!disk_interface_->WriteFile(edge->GetRspFile(), edge->GetRspFileContent()))
+ if (!disk_interface_->WriteFile(edge->GetRspFile(), edge->GetRspFileContent()))
return false;
}
@@ -744,7 +744,7 @@ void Builder::FinishEdge(Edge* edge, bool success, const string& output) {
}
// delete the response file on success (if exists)
- if (edge->HasRspFile())
+ if (edge->HasRspFile())
disk_interface_->RemoveFile(edge->GetRspFile());
plan_.EdgeFinished(edge);