]> git.tdb.fi Git - builder.git/blob - source/compilecommandsgenerator.h
Inline simple constructors
[builder.git] / source / compilecommandsgenerator.h
1 #ifndef COMPILECOMMANDSGENERATOR_H_
2 #define COMPILECOMMANDSGENERATOR_H_
3
4 #include "internaltask.h"
5 #include "tool.h"
6
7 class CompileCommandsJson;
8
9 class CompileCommandsGenerator: public Tool
10 {
11 private:
12         class Worker: public InternalTask::Worker
13         {
14         private:
15                 const CompileCommandsJson ⌖
16
17         public:
18                 Worker(const CompileCommandsJson &t): target(t) { }
19
20         private:
21                 void main() override;
22         };
23
24 public:
25         CompileCommandsGenerator(Builder &b): Tool(b, "CCJG") { }
26
27         Target *create_target(const std::vector<Target *> &, const std::string &) override;
28         Task *run(const Target &) const override;
29 };
30
31 #endif