summaryrefslogtreecommitdiff
path: root/task.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 18:00:48 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 18:19:44 +0200
commit69528ba012ac2238f63464fb84e7623f3088603a (patch)
treec587fb15494d448a572e28ad6156aa9bb196ac17 /task.h
parentf1fda74cb76600b746cc3239f3ebf2f69ce2bf53 (diff)
Add compilation database generation.
Diffstat (limited to 'task.h')
-rw-r--r--task.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/task.h b/task.h
index f7a4758..9c2d622 100644
--- a/task.h
+++ b/task.h
@@ -31,6 +31,8 @@ public:
virtual std::vector<std::string> depends() const = 0;
virtual std::string target() const = 0;
+ virtual std::string toJSON() const { return {}; };
+
protected:
std::atomic<State> task_state{State::Unknown};
virtual int runInner() { return 0; };