]> git.tdb.fi Git - builder.git/blob - source/compilecommandsgenerator.h
Add support for generating compile_commands.json
[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 &);
19
20         private:
21                 virtual void main();
22         };
23
24 public:
25         CompileCommandsGenerator(Builder &);
26
27         virtual Target *create_target(const std::list<Target *> &, const std::string &);
28         virtual Task *run(const Target &) const;
29 };
30
31 #endif