X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.h;h=d30de049bab557ed7c0195be8a9471b4d378f9ff;hb=40ab4f61eaf7fc14fc6d1c2ea5eecee21882893a;hp=3e7aff0311511adc3682d8218be17e3088daeb1f;hpb=1dbeace0c44127bee08a3a8b231f4c8dcf707b2c;p=builder.git diff --git a/source/analyzer.h b/source/analyzer.h index 3e7aff0..d30de04 100644 --- a/source/analyzer.h +++ b/source/analyzer.h @@ -1,7 +1,7 @@ #ifndef ANALYZER_H_ #define ANALYZER_H_ -#include +#include #include #include #include @@ -24,18 +24,17 @@ public: }; private: - typedef std::vector TableRow; - typedef std::list Table; + using TableRow = std::vector; Builder &builder; - Mode mode; - Table table; - unsigned max_depth; - bool full_paths; + Mode mode = DEPS; + std::vector table; + unsigned max_depth = 0; + bool full_paths = false; std::map > rdepends; public: - Analyzer(Builder &); + Analyzer(Builder &b): builder(b) { } void set_mode(Mode m) { mode = m; } void set_max_depth(unsigned m) { max_depth = m; }