aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-22 17:43:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-22 17:43:09 +0200
commit8b98a6b3fae40487ac529a7118865df6a71159ee (patch)
treedcdc0a13ccec81c087ed05a9ebfe5cac3d56b955 /build2/filesystem.hxx
parentade763571a19b5e222ac626a6b3bc10685e542a1 (diff)
Implement detection of ignorable changes (whitespaces, comments)
Diffstat (limited to 'build2/filesystem.hxx')
-rw-r--r--build2/filesystem.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx
index 79633af..4ef4caf 100644
--- a/build2/filesystem.hxx
+++ b/build2/filesystem.hxx
@@ -30,6 +30,14 @@ namespace build2
explicit operator bool () const {return v == T::success;}
};
+ // Set the file access and modification times to the current time printing
+ // the standard diagnostics starting from the specified verbosity level. If
+ // the file does not exist and create is true, create it and fail otherwise.
+ // Return true if the file was created and false otherwise.
+ //
+ bool
+ touch (const path&, bool create, uint16_t verbosity = 1);
+
// Create the directory and print the standard diagnostics starting from
// the specified verbosity level.
//