-
-
Save mgartmann/f8a876ebbed6f7c1b8e7a9c901f36508 to your computer and use it in GitHub Desktop.
Check-Clang-Tools with iostream and C++11 Failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120>******************** | |
120>FAIL: Clang Tools :: clang-tidy/checkers/misc-std-stream-objects-outside-main.cpp (200 of 1247) | |
120>******************** TEST 'Clang Tools :: clang-tidy/checkers/misc-std-stream-objects-outside-main.cpp' FAILED ******************** | |
120>Script: | |
120>-- | |
120>: 'RUN: at line 1'; C:/Users/gartm/AppData/Local/Programs/Python/Python39/python.exe C:/HSR/Semester6/BA/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py C:\HSR\Semester6\BA\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc-std-stream-objects-outside-main.cpp misc-std-stream-objects-outside-main C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp | |
120>-- | |
120>Exit Code: 1 | |
120> | |
120>Command Output (stdout): | |
120>-- | |
120>$ ":" "RUN: at line 1" | |
120>$ "C:/Users/gartm/AppData/Local/Programs/Python/Python39/python.exe" "C:/HSR/Semester6/BA/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py" "C:\HSR\Semester6\BA\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc-std-stream-objects-outside-main.cpp" "misc-std-stream-objects-outside-main" "C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp" | |
120># command output: | |
120>Running ['clang-tidy', 'C:\\HSR\\Semester6\\BA\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\Output\\misc-std-stream-objects-outside-main.cpp.tmp.cpp', '-fix', '--checks=-*,misc-std-stream-objects-outside-main', '-config={}', '--', '-std=c++11', '-nostdinc++']... | |
120> | |
120>clang-tidy failed: | |
120> | |
120>4 warnings and 20 errors generated. | |
120> | |
120> | |
120>Error while processing C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp.cpp. | |
120> | |
120> | |
120>CUSTOMBUILD : error : too many errors emitted, stopping now [clang-diagnostic-error] | |
120> | |
120>C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp.cpp(26,8): warning GD09CD406: predefined standard stream objects should not be used outside the main function [misc-std-stream-objects-outside-main] | |
120> | |
120> std::cout << "This should trigger the check"; | |
120> | |
120> ^ | |
120> | |
120>C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp.cpp(29,8): warning GD09CD406: predefined standard stream objects should not be used outside the main function [misc-std-stream-objects-outside-main] | |
120> | |
120> std::wcout << "This should trigger the check"; | |
120> | |
120> ^ | |
120> | |
120>C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp.cpp(32,8): warning GD09CD406: predefined standard stream objects should not be used outside the main function [misc-std-stream-objects-outside-main] | |
120> | |
120> std::cerr << "This should trigger the check"; | |
120> | |
120> ^ | |
120> | |
120>C:\HSR\Semester6\BA\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\Output\misc-std-stream-objects-outside-main.cpp.tmp.cpp(35,8): warning GD09CD406: predefined standard stream objects should not be used outside the main function [misc-std-stream-objects-outside-main] | |
120> | |
120> std::wcerr << "This should trigger the check"; | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\utility(127,22): error G90440305: 'auto' return without trailing return type; deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr auto&& _Tuple_get(tuple<_Types...>&& _Tuple) noexcept; | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xstddef(283,22): error G90440305: 'auto' return without trailing return type; deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr auto _Unfancy(_Ptrty _Ptr) noexcept { // converts from a fancy pointer to a plain pointer | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(221,15): error G43E0F27D: deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120> constexpr decltype(auto) operator()(_Args&&... _Vals) { // forward function call operator | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1276,16): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120>constexpr void _Adl_verify_range(const _Iter& _First, const _Sentinel& _Last) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1312,22): error G43E0F27D: deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr decltype(auto) _Get_unwrapped(_Iter&& _It) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1359,22): error G43E0F27D: deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr decltype(auto) _Get_unwrapped_unverified(_Iter&& _It) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1418,22): error G43E0F27D: deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr decltype(auto) _Get_unwrapped_n(_Iter&& _It, const _Diff _Off) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1496,16): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120>constexpr void _Seek_wrapped(_Iter& _It, _UIter&& _UIt) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1562,22): error G90440305: 'auto' return without trailing return type; deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>_NODISCARD constexpr auto _Idl_distance(const _Iter& _First, const _Iter& _Last) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(1567,16): error G572153C7: no viable conversion from returned value of type 'std::_Distance_unknown' to function return type 'int' [clang-diagnostic-error] | |
120> | |
120> return _Distance_unknown{}; | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(2037,27): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> friend constexpr void _Verify_range(const reverse_iterator& _First, const reverse_iterator<_BidIt2>& _Last) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(2042,20): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> constexpr void _Verify_offset(const difference_type _Off) const { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(2055,20): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> constexpr void _Seek_to(const reverse_iterator<_Src>& _It) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(4055,18): error G90440305: 'auto' return without trailing return type; deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120> _CONSTEXPR17 auto operator++(int) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(4159,27): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> friend constexpr void _Verify_range(const move_iterator& _First, const move_iterator<_Iter2>& _Last) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(4172,20): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> constexpr void _Verify_offset(const difference_type _Off) const { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(4188,20): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> constexpr void _Seek_to(const move_iterator<_Src>& _It) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(4192,20): error G2221FED8: constexpr function's return type 'void' is not a literal type [clang-diagnostic-error] | |
120> | |
120> constexpr void _Seek_to(move_iterator<_Src>&& _It) { | |
120> | |
120> ^ | |
120> | |
120>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\include\xutility(5304,11): error G90440305: 'auto' return without trailing return type; deduced return types are a C++14 extension [clang-diagnostic-error] | |
120> | |
120>constexpr auto _Lex_compare_memcmp_classify(const _InIt1&, const _InIt2&, const _Pr&) { | |
120> | |
120> ^ | |
120> | |
120>Found compiler errors, but -fix-errors was not specified. | |
120> | |
120> | |
120>Fixes have NOT been applied. | |
120> | |
120> | |
120> | |
120> | |
120> | |
120>Found compiler error(s). | |
120> | |
120> | |
120> | |
120> | |
120> | |
120># command stderr: | |
120>Traceback (most recent call last): | |
120> | |
120> File "C:\HSR\Semester6\BA\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 252, in <module> | |
120> | |
120> main() | |
120> | |
120> File "C:\HSR\Semester6\BA\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 248, in main | |
120> | |
120> run_test_once(args, extra_args) | |
120> | |
120> File "C:\HSR\Semester6\BA\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 148, in run_test_once | |
120> | |
120> subprocess.check_output(args, stderr=subprocess.STDOUT).decode() | |
120> | |
120> File "c:\users\gartm\appdata\local\programs\python\python39\lib\subprocess.py", line 424, in check_output | |
120> | |
120> return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, | |
120> | |
120> File "c:\users\gartm\appdata\local\programs\python\python39\lib\subprocess.py", line 528, in run | |
120> | |
120> raise CalledProcessError(retcode, process.args, | |
120> | |
120>subprocess.CalledProcessError: Command '['clang-tidy', 'C:\\HSR\\Semester6\\BA\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\Output\\misc-std-stream-objects-outside-main.cpp.tmp.cpp', '-fix', '--checks=-*,misc-std-stream-objects-outside-main', '-config={}', '--', '-std=c++11', '-nostdinc++']' returned non-zero exit status 1. | |
120> | |
120> | |
120>CUSTOMBUILD : error : command failed with exit status: 1 | |
120> | |
120>-- | |
120> | |
120>******************** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment