X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcompilecommandsgenerator.h;h=e3116f9c839312e5930c56d0c5342c9ea2805a03;hb=d1eb133ab529cdae131be7b150209f03189248f3;hp=ba74f1119e5425447462a7440af6b7c72482b1b2;hpb=8222bc867676a07f17b5d0d2ea9bff608151134b;p=builder.git diff --git a/source/compilecommandsgenerator.h b/source/compilecommandsgenerator.h index ba74f11..e3116f9 100644 --- a/source/compilecommandsgenerator.h +++ b/source/compilecommandsgenerator.h @@ -1,31 +1,20 @@ #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 &); + CompileCommandsGenerator(Builder &b): Tool(b, "CCJG") { } + + Target *create_target(const std::vector &, const std::string &) override; + Task *run(const Target &) const override; - virtual Target *create_target(const std::list &, const std::string &); - virtual Task *run(const Target &) const; +private: + static bool _run(const CompileCommandsJson &); }; #endif