summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-04-29 18:03:03 (GMT)
committerEvan Martin <martine@danga.com>2011-04-29 18:04:12 (GMT)
commite3168e1d282d6dcac73f710c5deb575613c335b7 (patch)
tree82b8a12cf35a756ff9f32d5d708e2973f256deb7 /src/build_log.h
parentfb7c7827ed22662d7dacc0c7a2dd0d48dc41ee06 (diff)
downloadNinja-e3168e1d282d6dcac73f710c5deb575613c335b7.zip
Ninja-e3168e1d282d6dcac73f710c5deb575613c335b7.tar.gz
Ninja-e3168e1d282d6dcac73f710c5deb575613c335b7.tar.bz2
add doxygen-compatibile comments to most classes
Diffstat (limited to 'src/build_log.h')
-rw-r--r--src/build_log.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/build_log.h b/src/build_log.h
index a671467..5d8d6a2 100644
--- a/src/build_log.h
+++ b/src/build_log.h
@@ -22,13 +22,14 @@ using namespace std;
struct BuildConfig;
struct Edge;
-// Store a log of every command ran for every build.
-// It has a few uses:
-// 1) historical command lines for output files, so we know
-// when we need to rebuild due to the command changing
-// 2) historical timing information
-// 3) maybe we can generate some sort of build overview output
-// from it
+/// Store a log of every command ran for every build.
+/// It has a few uses:
+///
+/// 1) historical command lines for output files, so we know
+/// when we need to rebuild due to the command changing
+/// 2) historical timing information
+/// 3) maybe we can generate some sort of build overview output
+/// from it
struct BuildLog {
BuildLog();
@@ -37,7 +38,7 @@ struct BuildLog {
void RecordCommand(Edge* edge, int time_ms);
void Close();
- // Load the on-disk log.
+ /// Load the on-disk log.
bool Load(const string& path, string* err);
struct LogEntry {
@@ -49,13 +50,13 @@ struct BuildLog {
}
};
- // Lookup a previously-run command by its output path.
+ /// Lookup a previously-run command by its output path.
LogEntry* LookupByOutput(const string& path);
- // Serialize an entry into a log file.
+ /// Serialize an entry into a log file.
void WriteEntry(FILE* f, const LogEntry& entry);
- // Rewrite the known log entries, throwing away old data.
+ /// Rewrite the known log entries, throwing away old data.
bool Recompact(const string& path, string* err);
typedef map<string, LogEntry*> Log;