ninja: Entering directory `out/gn' [0/1] ACTION //clang-tools-extra/test:check-clang-tools(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using clang: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/clang -- Testing: 1475 tests, 64 workers -- Testing: 0.. 10 FAIL: Clang Tools :: clang-tidy/checkers/bugprone/exception-escape.cpp (78 of 1475) ******************** TEST 'Clang Tools :: clang-tidy/checkers/bugprone/exception-escape.cpp' FAILED ******************** Exit Code: 1 Command Output (stdout): -- # RUN: at line 1 python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,NONE -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- -config="{CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'None' }}" -- -fexceptions # executed command: python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,NONE -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- '-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: '"'"'ignored1,ignored2'"'"', bugprone-exception-escape.FunctionsThatShouldNotThrow: '"'"'enabled1,enabled2,enabled3'"'"', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: '"'"'None'"'"' }}' -- -fexceptions # .---command stdout------------ # | Running ['clang-tidy', '--experimental-custom-checks', '/usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp', '-fix', '--checks=-*,bugprone-exception-escape', "-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'None' }}", '--', '-fexceptions', '-std=c++11', '-nostdinc++', '-isystem', '/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/std']... # | ------------------------ clang-tidy output ----------------------- # | 120 warnings generated. # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:22:3: warning: an exception may be thrown in function '~throwing_destructor' which should not throw exceptions [bugprone-exception-escape] # | 22 | ~throwing_destructor() { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:24:5: note: frame #0: unhandled exception of type 'int' may be thrown in function '~throwing_destructor' here # | 24 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:30:3: warning: an exception may be thrown in function 'throwing_move_constructor' which should not throw exceptions [bugprone-exception-escape] # | 30 | throwing_move_constructor(throwing_move_constructor&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:32:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_move_constructor' here # | 32 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:38:29: warning: an exception may be thrown in function 'operator=' which should not throw exceptions [bugprone-exception-escape] # | 38 | throwing_move_assignment& operator=(throwing_move_assignment&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:40:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'operator=' here # | 40 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:45:6: warning: an exception may be thrown in function 'throwing_noexcept' which should not throw exceptions [bugprone-exception-escape] # | 45 | void throwing_noexcept() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:47:3: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_noexcept' here # | 47 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:59:6: warning: an exception may be thrown in function 'throw_and_catch_some' which should not throw exceptions [bugprone-exception-escape] # | 59 | void throw_and_catch_some(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:63:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_and_catch_some' here # | 63 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:88:6: warning: an exception may be thrown in function 'throw_and_rethrow' which should not throw exceptions [bugprone-exception-escape] # | 88 | void throw_and_rethrow() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:91:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_and_rethrow' here # | 91 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:98:6: warning: an exception may be thrown in function 'throw_catch_throw' which should not throw exceptions [bugprone-exception-escape] # | 98 | void throw_catch_throw() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:103:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_catch_throw' here # | 103 | throw 2; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:108:6: warning: an exception may be thrown in function 'throw_catch_rethrow_the_rest' which should not throw exceptions [bugprone-exception-escape] # | 108 | void throw_catch_rethrow_the_rest(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:112:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_catch_rethrow_the_rest' here # | 112 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:141:6: warning: an exception may be thrown in function 'throw_catch_multi_ptr_1' which should not throw exceptions [bugprone-exception-escape] # | 141 | void throw_catch_multi_ptr_1() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:145:5: note: frame #0: unhandled exception of type 'char **' may be thrown in function 'throw_catch_multi_ptr_1' here # | 145 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:187:6: warning: an exception may be thrown in function 'throw_c_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 187 | void throw_c_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:192:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer' here # | 192 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:197:6: warning: an exception may be thrown in function 'throw_c_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 197 | void throw_c_catch_pointer_v() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:202:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer_v' here # | 202 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:207:6: warning: an exception may be thrown in function 'throw_v_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 207 | void throw_v_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:212:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer' here # | 212 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:217:6: warning: an exception may be thrown in function 'throw_v_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 217 | void throw_v_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:222:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer_c' here # | 222 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:227:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 227 | void throw_cv_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:232:5: note: frame #0: unhandled exception of type 'const volatile int *' may be thrown in function 'throw_cv_catch_pointer_c' here # | 232 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:237:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 237 | void throw_cv_catch_ # | ... # `---data was truncated (10240/108278) (change limit with -D output_limit=N) # RUN: at line 7 python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,UNDEFINED,UNKNOWN -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- -config="{CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'OnlyUndefined' }}" -- -fexceptions # executed command: python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,UNDEFINED,UNKNOWN -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- '-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: '"'"'ignored1,ignored2'"'"', bugprone-exception-escape.FunctionsThatShouldNotThrow: '"'"'enabled1,enabled2,enabled3'"'"', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: '"'"'OnlyUndefined'"'"' }}' -- -fexceptions # .---command stdout------------ # | Running ['clang-tidy', '--experimental-custom-checks', '/usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp', '-fix', '--checks=-*,bugprone-exception-escape', "-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'OnlyUndefined' }}", '--', '-fexceptions', '-std=c++11', '-nostdinc++', '-isystem', '/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/std']... # | ------------------------ clang-tidy output ----------------------- # | 120 warnings generated. # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:22:3: warning: an exception may be thrown in function '~throwing_destructor' which should not throw exceptions [bugprone-exception-escape] # | 22 | ~throwing_destructor() { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:24:5: note: frame #0: unhandled exception of type 'int' may be thrown in function '~throwing_destructor' here # | 24 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:30:3: warning: an exception may be thrown in function 'throwing_move_constructor' which should not throw exceptions [bugprone-exception-escape] # | 30 | throwing_move_constructor(throwing_move_constructor&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:32:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_move_constructor' here # | 32 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:38:29: warning: an exception may be thrown in function 'operator=' which should not throw exceptions [bugprone-exception-escape] # | 38 | throwing_move_assignment& operator=(throwing_move_assignment&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:40:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'operator=' here # | 40 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:45:6: warning: an exception may be thrown in function 'throwing_noexcept' which should not throw exceptions [bugprone-exception-escape] # | 45 | void throwing_noexcept() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:47:3: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_noexcept' here # | 47 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:59:6: warning: an exception may be thrown in function 'throw_and_catch_some' which should not throw exceptions [bugprone-exception-escape] # | 59 | void throw_and_catch_some(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:63:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_and_catch_some' here # | 63 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:88:6: warning: an exception may be thrown in function 'throw_and_rethrow' which should not throw exceptions [bugprone-exception-escape] # | 88 | void throw_and_rethrow() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:91:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_and_rethrow' here # | 91 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:98:6: warning: an exception may be thrown in function 'throw_catch_throw' which should not throw exceptions [bugprone-exception-escape] # | 98 | void throw_catch_throw() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:103:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_catch_throw' here # | 103 | throw 2; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:108:6: warning: an exception may be thrown in function 'throw_catch_rethrow_the_rest' which should not throw exceptions [bugprone-exception-escape] # | 108 | void throw_catch_rethrow_the_rest(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:112:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_catch_rethrow_the_rest' here # | 112 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:141:6: warning: an exception may be thrown in function 'throw_catch_multi_ptr_1' which should not throw exceptions [bugprone-exception-escape] # | 141 | void throw_catch_multi_ptr_1() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:145:5: note: frame #0: unhandled exception of type 'char **' may be thrown in function 'throw_catch_multi_ptr_1' here # | 145 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:187:6: warning: an exception may be thrown in function 'throw_c_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 187 | void throw_c_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:192:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer' here # | 192 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:197:6: warning: an exception may be thrown in function 'throw_c_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 197 | void throw_c_catch_pointer_v() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:202:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer_v' here # | 202 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:207:6: warning: an exception may be thrown in function 'throw_v_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 207 | void throw_v_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:212:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer' here # | 212 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:217:6: warning: an exception may be thrown in function 'throw_v_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 217 | void throw_v_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:222:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer_c' here # | 222 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:227:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 227 | void throw_cv_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:232:5: note: frame #0: unhandled exception of type 'const volatile int *' may be thrown in function 'throw_cv_catch_pointer_c' here # | 232 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:237:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 237 | void throw_ # | ... # `---data was truncated (10240/108986) (change limit with -D output_limit=N) # RUN: at line 13 python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,ALL,UNKNOWN -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- -config="{CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'All' }}" -- -fexceptions # executed command: python3 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py -check-suffixes=,ALL,UNKNOWN -std=c++11,c++14 /usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp bugprone-exception-escape /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp -- '-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: '"'"'ignored1,ignored2'"'"', bugprone-exception-escape.FunctionsThatShouldNotThrow: '"'"'enabled1,enabled2,enabled3'"'"', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: '"'"'All'"'"' }}' -- -fexceptions # .---command stdout------------ # | Running ['clang-tidy', '--experimental-custom-checks', '/usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp', '-fix', '--checks=-*,bugprone-exception-escape', "-config={CheckOptions: { bugprone-exception-escape.IgnoredExceptions: 'ignored1,ignored2', bugprone-exception-escape.FunctionsThatShouldNotThrow: 'enabled1,enabled2,enabled3', bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: 'All' }}", '--', '-fexceptions', '-std=c++11', '-nostdinc++', '-isystem', '/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/std']... # | ------------------------ clang-tidy output ----------------------- # | 121 warnings generated. # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:22:3: warning: an exception may be thrown in function '~throwing_destructor' which should not throw exceptions [bugprone-exception-escape] # | 22 | ~throwing_destructor() { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:24:5: note: frame #0: unhandled exception of type 'int' may be thrown in function '~throwing_destructor' here # | 24 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:30:3: warning: an exception may be thrown in function 'throwing_move_constructor' which should not throw exceptions [bugprone-exception-escape] # | 30 | throwing_move_constructor(throwing_move_constructor&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:32:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_move_constructor' here # | 32 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:38:29: warning: an exception may be thrown in function 'operator=' which should not throw exceptions [bugprone-exception-escape] # | 38 | throwing_move_assignment& operator=(throwing_move_assignment&&) { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:40:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'operator=' here # | 40 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:45:6: warning: an exception may be thrown in function 'throwing_noexcept' which should not throw exceptions [bugprone-exception-escape] # | 45 | void throwing_noexcept() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:47:3: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throwing_noexcept' here # | 47 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:59:6: warning: an exception may be thrown in function 'throw_and_catch_some' which should not throw exceptions [bugprone-exception-escape] # | 59 | void throw_and_catch_some(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:63:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_and_catch_some' here # | 63 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:88:6: warning: an exception may be thrown in function 'throw_and_rethrow' which should not throw exceptions [bugprone-exception-escape] # | 88 | void throw_and_rethrow() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:91:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_and_rethrow' here # | 91 | throw 1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:98:6: warning: an exception may be thrown in function 'throw_catch_throw' which should not throw exceptions [bugprone-exception-escape] # | 98 | void throw_catch_throw() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:103:5: note: frame #0: unhandled exception of type 'int' may be thrown in function 'throw_catch_throw' here # | 103 | throw 2; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:108:6: warning: an exception may be thrown in function 'throw_catch_rethrow_the_rest' which should not throw exceptions [bugprone-exception-escape] # | 108 | void throw_catch_rethrow_the_rest(int n) noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:112:5: note: frame #0: unhandled exception of type 'double' may be thrown in function 'throw_catch_rethrow_the_rest' here # | 112 | throw 1.1; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:141:6: warning: an exception may be thrown in function 'throw_catch_multi_ptr_1' which should not throw exceptions [bugprone-exception-escape] # | 141 | void throw_catch_multi_ptr_1() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:145:5: note: frame #0: unhandled exception of type 'char **' may be thrown in function 'throw_catch_multi_ptr_1' here # | 145 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:187:6: warning: an exception may be thrown in function 'throw_c_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 187 | void throw_c_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:192:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer' here # | 192 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:197:6: warning: an exception may be thrown in function 'throw_c_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 197 | void throw_c_catch_pointer_v() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:202:5: note: frame #0: unhandled exception of type 'const int *' may be thrown in function 'throw_c_catch_pointer_v' here # | 202 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:207:6: warning: an exception may be thrown in function 'throw_v_catch_pointer' which should not throw exceptions [bugprone-exception-escape] # | 207 | void throw_v_catch_pointer() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:212:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer' here # | 212 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:217:6: warning: an exception may be thrown in function 'throw_v_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 217 | void throw_v_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:222:5: note: frame #0: unhandled exception of type 'volatile int *' may be thrown in function 'throw_v_catch_pointer_c' here # | 222 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:227:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_c' which should not throw exceptions [bugprone-exception-escape] # | 227 | void throw_cv_catch_pointer_c() noexcept { # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:232:5: note: frame #0: unhandled exception of type 'const volatile int *' may be thrown in function 'throw_cv_catch_pointer_c' here # | 232 | throw p; # | | ^ # | /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp:237:6: warning: an exception may be thrown in function 'throw_cv_catch_pointer_v' which should not throw exceptions [bugprone-exception-escape] # | 237 | void throw_cv_catch_p # | ... # `---data was truncated (10240/116627) (change limit with -D output_limit=N) # .---command stderr------------ # | Traceback (most recent call last): # | File "/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py", line 576, in # | main() # | ~~~~^^ # | File "/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py", line 572, in main # | CheckRunner(args, extra_args).run() # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ # | File "/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py", line 437, in run # | self.check_messages(main_output) # | ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ # | File "/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py", line 362, in check_messages # | try_run( # | ~~~~~~~^ # | [ # | ^ # | ...<5 lines>... # | ] # | ^ # | ) # | ^ # | File "/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/check_clang_tidy.py", line 68, in try_run # | process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode( # | ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # | File "/usr/lib/python3.13/subprocess.py", line 472, in check_output # | return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, # | ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # | **kwargs).stdout # | ^^^^^^^^^ # | File "/usr/lib/python3.13/subprocess.py", line 577, in run # | raise CalledProcessError(retcode, process.args, # | output=stdout, stderr=stderr) # | subprocess.CalledProcessError: Command '['FileCheck', '-input-file=/usr/local/google/home/thakis/src/llvm-project/out/gn/obj/clang-tools-extra/test/clang-tidy/checkers/bugprone/Output/exception-escape.cpp.tmp.cpp.msg', '/usr/local/google/home/thakis/src/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp', '-check-prefixes=CHECK-MESSAGES,CHECK-MESSAGES-ALL,CHECK-MESSAGES-UNKNOWN', '-implicit-check-not={{warning|error}}:']' returned non-zero exit status 1. # `----------------------------- # error: command failed with exit status: 1 -- ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. ******************** Failed Tests (1): Clang Tools :: clang-tidy/checkers/bugprone/exception-escape.cpp Testing Time: 11.25s Total Discovered Tests: 1738 Unsupported : 2 (0.12%) Passed : 1734 (99.77%) Expectedly Failed: 1 (0.06%) Failed : 1 (0.06%) FAILED: gen/clang-tools-extra/test/run-lit python3 bin/llvm-lit -sv ../../clang-tools-extra/test ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn', 'check-clang-tools']' returned non-zero exit status 1.