MCPcopy Create free account
hub / github.com/Kitware/CMake / do_command

Function do_command

Source/cmakemain.cxx:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#endif
140
141int do_command(int ac, char const* const* av,
142 cm::optional<cm::StdIo::Console> console)
143{
144 std::vector<std::string> args;
145 args.reserve(ac - 1);
146 args.emplace_back(av[0]);
147 cm::append(args, av + 2, av + ac);
148 return cmcmd::ExecuteCMakeCommand(args, std::move(console));
149}
150
151cmMakefile* cmakemainGetMakefile(cmake* cm)
152{

Callers 1

mainFunction · 0.85

Calls 4

appendFunction · 0.85
moveFunction · 0.85
reserveMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…