MCPcopy Create free account
hub / github.com/build2/build2 / process_path_reverse

Function process_path_reverse

libbuild2/variable.cxx:1185–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183 }
1184
1185 static names_view
1186 process_path_reverse (const value& v, names& s, bool)
1187 {
1188 const auto& x (v.as<process_path> ());
1189
1190 // Note that strictly speaking process_path doesn't have empty
1191 // representation (see convert() above). Thus we always return reduced
1192 // representation.
1193 //
1194 if (!x.empty ())
1195 {
1196 s.reserve (x.effect.empty () ? 1 : 2);
1197 process_path_reverse_impl (x, s);
1198 }
1199
1200 return s;
1201 }
1202
1203 const char* const value_traits<process_path>::type_name = "process_path";
1204

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected