]> git.tdb.fi Git - builder.git/blobdiff - source/compilecommandsgenerator.h
Redesign how tools are run
[builder.git] / source / compilecommandsgenerator.h
index ba74f1119e5425447462a7440af6b7c72482b1b2..a6fa6f9bb696cd2634624bbe8fabaac428df2a73 100644 (file)
@@ -1,31 +1,19 @@
 #ifndef COMPILECOMMANDSGENERATOR_H_
 #define COMPILECOMMANDSGENERATOR_H_
 
-#include "internaltask.h"
 #include "tool.h"
 
 class CompileCommandsJson;
 
 class CompileCommandsGenerator: public Tool
 {
-private:
-       class Worker: public InternalTask::Worker
-       {
-       private:
-               const CompileCommandsJson ⌖
-
-       public:
-               Worker(const CompileCommandsJson &);
-
-       private:
-               virtual void main();
-       };
-
 public:
        CompileCommandsGenerator(Builder &);
 
-       virtual Target *create_target(const std::list<Target *> &, const std::string &);
-       virtual Task *run(const Target &) const;
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+
+private:
+       static bool _run(const CompileCommandsJson &);
 };
 
 #endif