| 123 | const std::vector<t_program*>& get_includes() const { return includes_; } |
| 124 | |
| 125 | void set_out_path(std::string out_path, bool out_path_is_absolute) { |
| 126 | out_path_ = out_path; |
| 127 | out_path_is_absolute_ = out_path_is_absolute; |
| 128 | // Ensure that it ends with a trailing '/' (or '\' for windows machines) |
| 129 | char c = out_path_.at(out_path_.size() - 1); |
| 130 | if (!(c == '/' || c == '\\')) { |
| 131 | out_path_.push_back('/'); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // Typename collision detection |
| 136 | /** |