summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2014-11-08 19:47:22 (GMT)
committerScott Graham <scottmg@chromium.org>2014-11-08 19:47:22 (GMT)
commit8177085f4d3adf78b9709069a9c3ce5fe442867a (patch)
tree01d21b186ca671903ad8720c13ea2fa01f82e0fb /src/graph.h
parent3fb18496c4c2642742df152974d78756d1c9df8a (diff)
downloadNinja-8177085f4d3adf78b9709069a9c3ce5fe442867a.zip
Ninja-8177085f4d3adf78b9709069a9c3ce5fe442867a.tar.gz
Ninja-8177085f4d3adf78b9709069a9c3ce5fe442867a.tar.bz2
path decanonicalization when building command
Diffstat (limited to 'src/graph.h')
-rw-r--r--src/graph.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h
index 5c4112b..9aada38 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -72,6 +72,8 @@ struct Node {
}
const string& path() const { return path_; }
+ /// Get |path()| but use slash_bits to convert back to original slash styles.
+ string PathDecanonicalized() const;
unsigned int slash_bits() const { return slash_bits_; }
TimeStamp mtime() const { return mtime_; }
@@ -93,7 +95,8 @@ struct Node {
private:
string path_;
- /// XXX See CanonicalizePath.
+ /// Set bits starting from lowest for backslashes that were normalized to
+ /// forward slashes by CanonicalizePath. See |PathDecanonicalized|.
unsigned int slash_bits_;
/// Possible values of mtime_: