Added support for completely disabling noexcept using MIJIN_TEST_NO_NOEXCEPT (for testing).
This commit is contained in:
@@ -140,7 +140,7 @@ StreamFeatures ProcessStream::getFeatures()
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string shellEscape(const std::string& arg) noexcept
|
||||
std::string shellEscape(const std::string& arg) MIJIN_NOEXCEPT
|
||||
{
|
||||
std::ostringstream oss;
|
||||
const bool requiresQuotes = std::any_of(arg.begin(), arg.end(), [&](const char chr) { return std::isspace(chr); });
|
||||
@@ -168,7 +168,7 @@ std::string shellEscape(const std::string& arg) noexcept
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
std::string makeShellCommand(const std::vector<std::string>& args) noexcept
|
||||
std::string makeShellCommand(const std::vector<std::string>& args) MIJIN_NOEXCEPT
|
||||
{
|
||||
using namespace mijin::pipe;
|
||||
return args
|
||||
|
||||
Reference in New Issue
Block a user