X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=e1bef2d8652031324338de553b5c46689213a194;hb=d1f9551e05c9d341149eb490e05b1465d3d6b711;hp=ce08a00af62aedc0aae64b8d901d579881103797;hpb=6b84e1f5673888753cbe566c1365222ed33fd3ac;p=builder.git diff --git a/source/tool.h b/source/tool.h index ce08a00..e1bef2d 100644 --- a/source/tool.h +++ b/source/tool.h @@ -31,26 +31,28 @@ public: protected: Builder &builder; - const Architecture *architecture; + const Architecture *architecture = 0; std::string tag; std::string command; - FileTarget *executable; + FileTarget *executable = 0; std::vector input_suffixes; std::vector aux_suffixes; - ProcessingUnit processing_unit; + ProcessingUnit processing_unit = ONE_FILE; VirtualFileSystem::SearchPath system_path; BuildInfo build_info; - bool prepared; + bool prepared = false; std::vector problems; Tool(Builder &, const std::string &); Tool(Builder &, const Architecture &, const std::string &); +private: + Tool(Builder &, const Architecture *, const std::string &); public: virtual ~Tool() { } const std::string &get_tag() const { return tag; } - /** Returns the architecture this tool build for. May return null if the + /** Returns the architecture this tool builds for. May return null if the tool is architecture-agnostic. */ const Architecture *get_architecture() const { return architecture; }