]> git.tdb.fi Git - builder.git/blobdiff - source/analyzer.h
Use default member initializers and constructor delegation
[builder.git] / source / analyzer.h
index 3e7aff0311511adc3682d8218be17e3088daeb1f..5827480cdd913765a7353e73a97068d20b6f4f27 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef ANALYZER_H_
 #define ANALYZER_H_
 
-#include <list>
+#include <map>
 #include <set>
 #include <string>
 #include <vector>
@@ -24,14 +24,13 @@ public:
        };
 
 private:
-       typedef std::vector<std::string> TableRow;
-       typedef std::list<TableRow> Table;
+       using TableRow = std::vector<std::string>;
 
        Builder &builder;
-       Mode mode;
-       Table table;
-       unsigned max_depth;
-       bool full_paths;
+       Mode mode = DEPS;
+       std::vector<TableRow> table;
+       unsigned max_depth = 0;
+       bool full_paths = false;
        std::map<const Target *, std::set<Target *> > rdepends;
 
 public: