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

Function cmOutputConverterIsShellOperator

Source/cmOutputConverter.cxx:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static bool cmOutputConverterIsShellOperator(cm::string_view str)
235{
236 static std::set<cm::string_view> const shellOperators{
237 "<", ">", "<<", ">>", "|", "||", "&&", "&>", "1>", "2>", "2>&1", "1>&2"
238 };
239 return (shellOperators.count(str) != 0);
240}
241
242std::string cmOutputConverter::EscapeForShell(cm::string_view str,
243 bool makeVars, bool forEcho,

Callers 1

EscapeForShellMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…