================ @@ -0,0 +1,54 @@ +// RUN: %check_clang_tidy -std=c++11,c++14 %s bugprone-unsafe-to-allow-exceptions %t -- -- -fexceptions +// RUN: %check_clang_tidy -std=c++11,c++14 -check-suffix=,CUSTOMSWAP %s bugprone-unsafe-to-allow-exceptions %t -- \ ---------------- balazske wrote:
It works in any C++ version but the exception specification syntax was changed after C++17 and the file would not compile with later version (`throw(exception)` is not allowed in later C++). https://github.com/llvm/llvm-project/pull/176430 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
