Regression

Clang Tools.clang-tidy/checkers.hicpp-exception-baseclass.cpp (from Clang Tools)

Failing for the past 1 build (Since Failed#17715 )
Took 0.24 sec.

Stacktrace

Script:
--
: 'RUN: at line 1';   /usr/local/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp-exception-baseclass.cpp hicpp-exception-baseclass /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp -- -- -fcxx-exceptions
--
Exit Code: 1

Command Output (stdout):
--
Running ['clang-tidy', '/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp', '-fix', '--checks=-*,hicpp-exception-baseclass', '-format-style=none', '--', '-fcxx-exceptions', '-std=c++11', '-nostdinc++']...
------------------------ clang-tidy output -----------------------
30 warnings generated.
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:23:11: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
    throw int(42);
          ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:27:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw int(42);
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:31:11: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
    throw 12;
          ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:38:11: warning: throwing an exception whose type 'non_derived_exception' is not derived from 'std::exception' [hicpp-exception-baseclass]
    throw non_derived_exception();
          ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:10:1: note: type defined here
class non_derived_exception {};
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:43:9: warning: throwing an exception whose type 'non_derived_exception' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw non_derived_exception();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:10:1: note: type defined here
class non_derived_exception {};
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:102:33: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  auto BadLambda = []() { throw int(42); };
                                ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'bad_generic_exception<int>' is not derived from 'std::exception' [hicpp-exception-baseclass]
void ThrowException() { throw T(); }
                              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'bad_generic_exception<int>' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'bad_generic_exception<std::exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
void ThrowException() { throw T(); }
                              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'bad_generic_exception<std::exception>' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'exotic_exception<non_derived_exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
void ThrowException() { throw T(); }
                              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'exotic_exception<non_derived_exception>' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:140:1: note: type defined here
template <typename T>
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
void ThrowException() { throw T(); }
                              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'int' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'non_derived_exception' is not derived from 'std::exception' [hicpp-exception-baseclass]
void ThrowException() { throw T(); }
                              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'non_derived_exception' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:10:1: note: type defined here
class non_derived_exception {};
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:150:3: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  THROW_BAD_EXCEPTION;
  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:130:35: note: expanded from macro 'THROW_BAD_EXCEPTION'
#define THROW_BAD_EXCEPTION throw int(42);
                                  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:159:9: warning: throwing an exception whose type 'bad_generic_exception<int>' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw bad_generic_exception<int>();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:137:1: note: type defined here
template <typename T>
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:162:9: warning: throwing an exception whose type 'bad_generic_exception<std::exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw bad_generic_exception<std::exception>();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:137:1: note: type defined here
template <typename T>
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:168:9: warning: throwing an exception whose type 'exotic_exception<non_derived_exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw exotic_exception<non_derived_exception>();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:140:1: note: type defined here
template <typename T>
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:184:9: warning: throwing an exception whose type 'TypedefedBad' (aka 'int') is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw TypedefedBad();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:178:1: note: type defined here
typedef int TypedefedBad;
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:189:9: warning: throwing an exception whose type 'UsingBad' (aka 'int') is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw UsingBad();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:180:1: note: type defined here
using UsingBad = int;
^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:205:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw T{}();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:211:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw ExceptionFactory();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:223:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw int_maker{}();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:238:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw f.make_exception();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:243:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw T().make_exception();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:255:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw int_factory().make_exception();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:262:9: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  throw int_f.make_exception();
        ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:268:37: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  ThrowClassTemplateParam() { throw T(); }
                                    ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:268:37: note: type 'int' is a template instantiation of 'T'
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:275:32: warning: throwing an exception whose type 'int' is not derived from 'std::exception' [hicpp-exception-baseclass]
  ThrowValueTemplate() { throw V; }
                               ^

------------------------------------------------------------------
------------------------------ Fixes -----------------------------

------------------------------------------------------------------
FileCheck failed:
command line:1:22: error: CHECK-NOTES-NOT: excluded string found in input
-implicit-check-not='{{note|warning|error}}:'
                     ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp.notes:30:183: note: found here
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'bad_generic_exception<std::exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
                                                                                                                                                                                      ^~~~~~~~

Input file: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp.notes
Check file: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp-exception-baseclass.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          .
          .
          .
         25:  ^
         26: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'bad_generic_exception<int>' is not derived from 'std::exception' [hicpp-exception-baseclass]
         27: void ThrowException() { throw T(); }
         28:  ^
         29: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'bad_generic_exception<int>' is a template instantiation of 'T'
         30: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'bad_generic_exception<std::exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
not:imp1                                                                                                                                                                                           !~~~~~~~                                                                                                                                           error: no match expected
         31: void ThrowException() { throw T(); }
         32:  ^
         33: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: note: type 'bad_generic_exception<std::exception>' is a template instantiation of 'T'
         34: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp:109:31: warning: throwing an exception whose type 'exotic_exception<non_derived_exception>' is not derived from 'std::exception' [hicpp-exception-baseclass]
         35: void ThrowException() { throw T(); }
          .
          .
          .
>>>>>>


--
Command Output (stderr):
--
+ : 'RUN: at line 1'
+ /usr/local/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp-exception-baseclass.cpp hicpp-exception-baseclass /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp -- -- -fcxx-exceptions
Traceback (most recent call last):
  File "/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 249, in <module>
    main()
  File "/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 245, in main
    run_test_once(args, extra_args)
  File "/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 195, in run_test_once
    subprocess.check_output(
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['FileCheck', '-input-file=/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/hicpp-exception-baseclass.cpp.tmp.cpp.notes', '/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp-exception-baseclass.cpp', '-check-prefixes=CHECK-NOTES', '-implicit-check-not={{note|warning|error}}:']' returned non-zero exit status 1.

--