MCPcopy Create free account
hub / github.com/apache/thrift / set_out_path

Method set_out_path

compiler/cpp/src/thrift/parse/t_program.h:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 /**

Callers 2

generateFunction · 0.80
mainFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected