Regression

Clang Tools.clang-tidy/checkers.modernize-use-uncaught-exceptions.cpp (from Clang Tools)

Failing for the past 1 build (Since Failed#17715 )
Took 0.25 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 -std=c++17-or-later /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-uncaught-exceptions.cpp modernize-use-uncaught-exceptions /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp
--
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/modernize-use-uncaught-exceptions.cpp.tmp.cpp', '-fix', '--checks=-*,modernize-use-uncaught-exceptions', '-format-style=none', '--', '-std=c++17', '-nostdinc++']...
------------------------ clang-tidy output -----------------------
16 warnings generated.
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:28:10: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  return T();
         ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:44:3: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  std::uncaught_exception();
  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:48:14: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  using std::uncaught_exception;
             ^
                               s
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:48:32: note: FIX-IT applied suggested code changes
  using std::uncaught_exception;
                               ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:52:3: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  uncaught_exception();
  ^
                    s
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:52:21: note: FIX-IT applied suggested code changes
  uncaught_exception();
                    ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:56:10: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  bool b{uncaught_exception()};
         ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:60:3: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  MACRO();
  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:3:15: note: expanded from macro 'MACRO'
#define MACRO std::uncaught_exception
              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:64:15: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  doSomething(std::uncaught_exception);
              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:68:15: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  doSomething(uncaught_exception);
              ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:73:10: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  foo = &uncaught_exception;
         ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:77:16: warning: 'std::uncaught_exception' is deprecated, use 'std::uncaught_exceptions' instead [modernize-use-uncaught-exceptions]
  doSomething2<uncaught_exception>();
               ^
clang-tidy applied 2 of 2 suggested fixes.

------------------------------------------------------------------
------------------------------ Fixes -----------------------------
--- /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp.orig	2020-09-28 12:41:14.000000000 -0700
+++ /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp	2020-09-28 12:41:14.000000000 -0700
@@ -45,11 +45,11 @@
   //
   //
 
-  using std::uncaught_exception;
+  using std::uncaught_exceptions;
   //
   //
 
-  uncaught_exception();
+  uncaught_exceptions();
   //
   //
 

------------------------------------------------------------------
FileCheck failed:
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-uncaught-exceptions.cpp:46:19: error: CHECK-FIXES: expected string not found in input
  // CHECK-FIXES: std::uncaught_exceptions();
                  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:39:3: note: scanning from here
  //
  ^
/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp:44:3: note: possible intended match here
  std::uncaught_exception();
  ^

Input file: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp.cpp
Check file: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-uncaught-exceptions.cpp

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

Input was:
<<<<<<
            .
            .
            .
           34: 
           35:   uncaught_exception();
           36:   //
           37: 
           38:   doSomething(uncaught_exception);
           39:   //
check:46'0       X~ error: no match found
           40: }
check:46'0     ~
           41: 
check:46'0     ~
           42: void warn() {
check:46'0     ~~~~~~~~~~~~~
           43: 
check:46'0     ~
           44:   std::uncaught_exception();
check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:46'1       ?                          possible intended match
           45:   //
check:46'0     ~~~~
           46:   //
check:46'0     ~~~~
           47: 
check:46'0     ~
           48:   using std::uncaught_exceptions;
check:46'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           49:   //
check:46'0     ~~~~
            .
            .
            .
>>>>>>


--
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 -std=c++17-or-later /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-uncaught-exceptions.cpp modernize-use-uncaught-exceptions /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/clang-build/tools/clang/tools/extra/test/clang-tidy/checkers/Output/modernize-use-uncaught-exceptions.cpp.tmp
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 167, 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/modernize-use-uncaught-exceptions.cpp.tmp.cpp', '/Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize-use-uncaught-exceptions.cpp', '-check-prefixes=CHECK-FIXES', '-strict-whitespace']' returned non-zero exit status 1.

--