mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: Fix bugprone-exception-escape diagnostic in test code
This commit is contained in:
@@ -44,7 +44,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
if (command == "dedup") {
|
||||
// Use a nested scope to free all resources before aborting below.
|
||||
{
|
||||
try {
|
||||
std::string input = getStdin();
|
||||
std::set<char> seen;
|
||||
std::string output;
|
||||
@@ -56,6 +56,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
std::cout << output << std::flush;
|
||||
std::cerr << "3" << std::flush;
|
||||
} catch (...) {
|
||||
}
|
||||
|
||||
// On Windows, the exit code of abort() is different between debug and
|
||||
|
||||
Reference in New Issue
Block a user