Start testing: Oct 17 00:44 BST ---------------------------------------------------------- 5/93 Testing: ifndef-define-typo 5/93 Test: ifndef-define-typo Command: "/usr/bin/python3" "run_tests.py" "ifndef-define-typo" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "ifndef-define-typo" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] ifndef-define-typo (plugin) [OK] ifndef-define-typo (standalone) SUCCESS Test time = 1.17 sec ---------------------------------------------------------- Test Passed. "ifndef-define-typo" end time: Oct 17 00:44 BST "ifndef-define-typo" time elapsed: 00:00:01 ---------------------------------------------------------- 8/93 Testing: jni-signatures 8/93 Test: jni-signatures Command: "/usr/bin/python3" "run_tests.py" "jni-signatures" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "jni-signatures" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] jni-signatures (plugin) [OK] jni-signatures (standalone) SUCCESS Test time = 0.88 sec ---------------------------------------------------------- Test Passed. "jni-signatures" end time: Oct 17 00:44 BST "jni-signatures" time elapsed: 00:00:00 ---------------------------------------------------------- 1/93 Testing: assert-with-side-effects 1/93 Test: assert-with-side-effects Command: "/usr/bin/python3" "run_tests.py" "assert-with-side-effects" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "assert-with-side-effects" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] assert-with-side-effects (plugin) [FAIL] assert-with-side-effects (Failed to build test. Check assert-with-side-effects/main.cpp.out for details) ------------------- Contents of assert-with-side-effects/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/assert-with-side-effects/main.cpp:1: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/assert-with-side-effects/main.cpp. ------------------- FAIL Test time = 2.30 sec ---------------------------------------------------------- Test Failed. "assert-with-side-effects" end time: Oct 17 00:44 BST "assert-with-side-effects" time elapsed: 00:00:02 ---------------------------------------------------------- 2/93 Testing: container-inside-loop 2/93 Test: container-inside-loop Command: "/usr/bin/python3" "run_tests.py" "container-inside-loop" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "container-inside-loop" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] container-inside-loop (plugin) [FAIL] container-inside-loop (Failed to build test. Check container-inside-loop/main.cpp.out for details) ------------------- Contents of container-inside-loop/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-inside-loop/main.cpp:1: In file included from /usr/include/qt5/QtCore/QVector:1: In file included from /usr/include/qt5/QtCore/qvector.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-inside-loop/main.cpp. ------------------- FAIL Test time = 2.32 sec ---------------------------------------------------------- Test Failed. "container-inside-loop" end time: Oct 17 00:44 BST "container-inside-loop" time elapsed: 00:00:02 ---------------------------------------------------------- 7/93 Testing: isempty-vs-count 7/93 Test: isempty-vs-count Command: "/usr/bin/python3" "run_tests.py" "isempty-vs-count" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "isempty-vs-count" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] isempty-vs-count (plugin) [FAIL] isempty-vs-count (Failed to build test. Check isempty-vs-count/main.cpp.out for details) ------------------- Contents of isempty-vs-count/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/isempty-vs-count/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/isempty-vs-count/main.cpp. ------------------- FAIL Test time = 2.46 sec ---------------------------------------------------------- Test Failed. "isempty-vs-count" end time: Oct 17 00:44 BST "isempty-vs-count" time elapsed: 00:00:02 ---------------------------------------------------------- 3/93 Testing: detaching-member 3/93 Test: detaching-member Command: "/usr/bin/python3" "run_tests.py" "detaching-member" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "detaching-member" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] detaching-member (plugin) [FAIL] detaching-member (Failed to build test. Check detaching-member/main.cpp.out for details) ------------------- Contents of detaching-member/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/detaching-member/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/detaching-member/main.cpp. ------------------- FAIL Test time = 2.57 sec ---------------------------------------------------------- Test Failed. "detaching-member" end time: Oct 17 00:44 BST "detaching-member" time elapsed: 00:00:02 ---------------------------------------------------------- 4/93 Testing: heap-allocated-small-trivial-type 4/93 Test: heap-allocated-small-trivial-type Command: "/usr/bin/python3" "run_tests.py" "heap-allocated-small-trivial-type" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "heap-allocated-small-trivial-type" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] heap-allocated-small-trivial-type (plugin) [FAIL] heap-allocated-small-trivial-type (Failed to build test. Check heap-allocated-small-trivial-type/main.cpp.out for details) ------------------- Contents of heap-allocated-small-trivial-type/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/heap-allocated-small-trivial-type/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/heap-allocated-small-trivial-type/main.cpp. ------------------- FAIL Test time = 2.71 sec ---------------------------------------------------------- Test Failed. "heap-allocated-small-trivial-type" end time: Oct 17 00:44 BST "heap-allocated-small-trivial-type" time elapsed: 00:00:02 ---------------------------------------------------------- 6/93 Testing: inefficient-qlist 6/93 Test: inefficient-qlist Command: "/usr/bin/python3" "run_tests.py" "inefficient-qlist" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "inefficient-qlist" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] inefficient-qlist (plugin) [FAIL] inefficient-qlist (Failed to build test. Check inefficient-qlist/main.cpp.out for details) ------------------- Contents of inefficient-qlist/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/inefficient-qlist/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/inefficient-qlist/main.cpp. ------------------- FAIL Test time = 2.92 sec ---------------------------------------------------------- Test Failed. "inefficient-qlist" end time: Oct 17 00:44 BST "inefficient-qlist" time elapsed: 00:00:02 ---------------------------------------------------------- 14/93 Testing: qt4-qstring-from-array 14/93 Test: qt4-qstring-from-array Command: "/usr/bin/python3" "run_tests.py" "qt4-qstring-from-array" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt4-qstring-from-array" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- SUCCESS Test time = 0.74 sec ---------------------------------------------------------- Test Passed. "qt4-qstring-from-array" end time: Oct 17 00:44 BST "qt4-qstring-from-array" time elapsed: 00:00:00 ---------------------------------------------------------- 9/93 Testing: qhash-with-char-pointer-key 9/93 Test: qhash-with-char-pointer-key Command: "/usr/bin/python3" "run_tests.py" "qhash-with-char-pointer-key" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qhash-with-char-pointer-key" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qhash-with-char-pointer-key (plugin) [FAIL] qhash-with-char-pointer-key (Failed to build test. Check qhash-with-char-pointer-key/main.cpp.out for details) ------------------- Contents of qhash-with-char-pointer-key/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-with-char-pointer-key/main.cpp:1: In file included from /usr/include/qt5/QtCore/QHash:1: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-with-char-pointer-key/main.cpp. ------------------- FAIL Test time = 2.10 sec ---------------------------------------------------------- Test Failed. "qhash-with-char-pointer-key" end time: Oct 17 00:44 BST "qhash-with-char-pointer-key" time elapsed: 00:00:02 ---------------------------------------------------------- 12/93 Testing: qstring-varargs 12/93 Test: qstring-varargs Command: "/usr/bin/python3" "run_tests.py" "qstring-varargs" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-varargs" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-varargs (plugin) [FAIL] qstring-varargs (Failed to build test. Check qstring-varargs/main.cpp.out for details) ------------------- Contents of qstring-varargs/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-varargs/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-varargs/main.cpp. ------------------- FAIL Test time = 1.76 sec ---------------------------------------------------------- Test Failed. "qstring-varargs" end time: Oct 17 00:44 BST "qstring-varargs" time elapsed: 00:00:01 ---------------------------------------------------------- 10/93 Testing: qproperty-type-mismatch 10/93 Test: qproperty-type-mismatch Command: "/usr/bin/python3" "run_tests.py" "qproperty-type-mismatch" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qproperty-type-mismatch" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qproperty-type-mismatch (plugin) [FAIL] qproperty-type-mismatch (Failed to build test. Check qproperty-type-mismatch/main.cpp.out for details) ------------------- Contents of qproperty-type-mismatch/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qproperty-type-mismatch/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qproperty-type-mismatch/main.cpp. ------------------- FAIL Test time = 2.41 sec ---------------------------------------------------------- Test Failed. "qproperty-type-mismatch" end time: Oct 17 00:44 BST "qproperty-type-mismatch" time elapsed: 00:00:02 ---------------------------------------------------------- 11/93 Testing: qrequiredresult-candidates 11/93 Test: qrequiredresult-candidates Command: "/usr/bin/python3" "run_tests.py" "qrequiredresult-candidates" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qrequiredresult-candidates" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qrequiredresult-candidates (plugin) [FAIL] qrequiredresult-candidates (Failed to build test. Check qrequiredresult-candidates/main.cpp.out for details) ------------------- Contents of qrequiredresult-candidates/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qrequiredresult-candidates/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qrequiredresult-candidates/main.cpp. ------------------- FAIL Test time = 2.47 sec ---------------------------------------------------------- Test Failed. "qrequiredresult-candidates" end time: Oct 17 00:44 BST "qrequiredresult-candidates" time elapsed: 00:00:02 ---------------------------------------------------------- 16/93 Testing: qt6-fwd-fixes 16/93 Test: qt6-fwd-fixes Command: "/usr/bin/python3" "run_tests.py" "qt6-fwd-fixes" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt6-fwd-fixes" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt6-fwd-fixes/main.cpp (plugin) [OK] qt6-fwd-fixes/file2.cpp (plugin) [OK] qt6-fwd-fixes/file1.cpp (plugin) [FAIL] qt6-fwd-fixes (Failed to build test. Check qt6-fwd-fixes/main.cpp.out for details) ------------------- Contents of qt6-fwd-fixes/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/main.cpp:1: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/main.cpp. ------------------- [FAIL] qt6-fwd-fixes (Failed to build test. Check qt6-fwd-fixes/file2.cpp.out for details) ------------------- Contents of qt6-fwd-fixes/file2.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/file2.cpp:1: In file included from /usr/include/qt5/QtCore/qcontainerfwd.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/file2.cpp. ------------------- [FAIL] qt6-fwd-fixes (Failed to build test. Check qt6-fwd-fixes/file1.cpp.out for details) ------------------- Contents of qt6-fwd-fixes/file1.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/file1.cpp:1: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/header1.h:1: In file included from /usr/include/qt5/QtCore/qcontainerfwd.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-fwd-fixes/file1.cpp. ------------------- [FAIL] qt6-fwd-fixes/main.cpp.clazy.yaml is missing!! [FAIL] qt6-fwd-fixes/file1.cpp.clazy.yaml is missing!! [FAIL] qt6-fwd-fixes/file2.cpp.clazy.yaml is missing!! [FAIL] qt6-fwd-fixes/main.cpp.clazy-standalone.yaml is missing!! [FAIL] qt6-fwd-fixes/file1.cpp.clazy-standalone.yaml is missing!! [FAIL] qt6-fwd-fixes/file2.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt6-fwd-fixes/main.cpp.clazy.fixed' [FAIL] qt6-fwd-fixes/main.cpp (plugin, fixits) --- qt6-fwd-fixes/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-fwd-fixes/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -#include - -class myClass -{ - class QStringList; // this is ignored -}; - -#include -class SomeClass; Error comparing files:[Errno 2] No such file or directory: 'qt6-fwd-fixes/file1.cpp.clazy.fixed' [FAIL] qt6-fwd-fixes/file1.cpp (plugin, fixits) --- qt6-fwd-fixes/file1.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-fwd-fixes/file1.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -#include "header1.h" -#include -class SomeClass; Error comparing files:[Errno 2] No such file or directory: 'qt6-fwd-fixes/file2.cpp.clazy.fixed' [FAIL] qt6-fwd-fixes/file2.cpp (plugin, fixits) --- qt6-fwd-fixes/file2.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-fwd-fixes/file2.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -#include FAIL Test time = 1.37 sec ---------------------------------------------------------- Test Failed. "qt6-fwd-fixes" end time: Oct 17 00:44 BST "qt6-fwd-fixes" time elapsed: 00:00:01 ---------------------------------------------------------- 13/93 Testing: qt-keywords 13/93 Test: qt-keywords Command: "/usr/bin/python3" "run_tests.py" "qt-keywords" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt-keywords" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt-keywords/no_keywords.cpp (plugin) [OK] qt-keywords/main.cpp (plugin) [FAIL] qt-keywords (Failed to build test. Check qt-keywords/no_keywords.cpp.out for details) ------------------- Contents of qt-keywords/no_keywords.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-keywords/no_keywords.cpp:2: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-keywords/no_keywords.cpp. ------------------- [FAIL] qt-keywords (Failed to build test. Check qt-keywords/main.cpp.out for details) ------------------- Contents of qt-keywords/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-keywords/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-keywords/main.cpp. ------------------- [FAIL] qt-keywords/main.cpp.clazy.yaml is missing!! [FAIL] qt-keywords/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt-keywords/main.cpp.clazy.fixed' [FAIL] qt-keywords/main.cpp (plugin, fixits) --- qt-keywords/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt-keywords/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,25 +0,0 @@ -#include -#include - -class MyObj : public QObject -{ -public Q_SLOTS: - void slot1(); - -public Q_SLOTS: - void slot2(); -Q_SIGNALS: - void signal1(); -Q_SIGNALS: - void signal2(); -public: - Q_SLOT void slot3(); - Q_SIGNAL void signal3(); - void test() - { - Q_EMIT signal1(); - QList l; - Q_FOREACH(int i, l) {} - } -}; - FAIL Test time = 2.61 sec ---------------------------------------------------------- Test Failed. "qt-keywords" end time: Oct 17 00:44 BST "qt-keywords" time elapsed: 00:00:02 ---------------------------------------------------------- 18/93 Testing: qt6-qhash-signature 18/93 Test: qt6-qhash-signature Command: "/usr/bin/python3" "run_tests.py" "qt6-qhash-signature" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt6-qhash-signature" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt6-qhash-signature (plugin) [FAIL] qt6-qhash-signature (Failed to build test. Check qt6-qhash-signature/main.cpp.out for details) ------------------- Contents of qt6-qhash-signature/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-qhash-signature/main.cpp:1: In file included from /usr/include/qt5/QtCore/QHash:1: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-qhash-signature/main.cpp. ------------------- [FAIL] qt6-qhash-signature/main.cpp.clazy.yaml is missing!! [FAIL] qt6-qhash-signature/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt6-qhash-signature/main.cpp.clazy.fixed' [FAIL] qt6-qhash-signature (plugin, fixits) --- qt6-qhash-signature/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-qhash-signature/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#include -#include - -class Employee -{ -public: - Employee() {} - Employee(const QString &name); - QString name() {return myName;} - size_t test_var = qHash("blabla", 0); - -private: - QString myName; -}; - -inline size_t qHash(Employee *key, size_t seed) -{ - return qHash(key->name(), seed) ^ 4; -} - -size_t test_var_2 = qHash("blabla", 0); - -size_t anotherFunction() -{ - int toto_NOT_qhash_related = 3; - return qHash("blabla", 0); -} - -void test() -{ - QString name = "Bob"; - Employee *theemploye = new Employee(name); - size_t foo = qHash(theemploye, 0); - size_t foo_g = qHash(theemploye, 0); - - unsigned char p[2]; - size_t foo_bits = qHashBits(p, 0, 0); - static const int ints[] = {0, 1, 2, 3, 4, 5}; - size_t foo_range = qHashRange(ints, ints); - size_t foo_rangec = qHashRangeCommutative(ints, ints); -} - FAIL Test time = 2.16 sec ---------------------------------------------------------- Test Failed. "qt6-qhash-signature" end time: Oct 17 00:44 BST "qt6-qhash-signature" time elapsed: 00:00:02 ---------------------------------------------------------- 15/93 Testing: qt6-deprecated-api-fixes 15/93 Test: qt6-deprecated-api-fixes Command: "/usr/bin/python3" "run_tests.py" "qt6-deprecated-api-fixes" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt6-deprecated-api-fixes" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt6-deprecated-api-fixes (plugin) [FAIL] qt6-deprecated-api-fixes (Failed to build test. Check qt6-deprecated-api-fixes/main.cpp.out for details) ------------------- Contents of qt6-deprecated-api-fixes/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-deprecated-api-fixes/main.cpp:1: In file included from /usr/include/qt5/QtCore/QTextStream:1: In file included from /usr/include/qt5/QtCore/qtextstream.h:43: In file included from /usr/include/qt5/QtCore/qiodevice.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-deprecated-api-fixes/main.cpp. ------------------- [FAIL] qt6-deprecated-api-fixes/main.cpp.clazy.yaml is missing!! [FAIL] qt6-deprecated-api-fixes/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt6-deprecated-api-fixes/main.cpp.clazy.fixed' [FAIL] qt6-deprecated-api-fixes (plugin, fixits) --- qt6-deprecated-api-fixes/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-deprecated-api-fixes/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,246 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#define MYSTRING "myDirPath" - -void test() -{ - QDir dir; - dir.setPath("myStuff"); - - QDir dir2; - dir2 = MYSTRING; - - QDir dir3; - dir3.setPath("myStuff"); - - QDir dir4; - char *pathName = "myStuff"; - dir4.setPath(pathName); - - QDir dir5; - bool cond = true; - dir5.setPath(cond ? "mystuff":"yourStuff"); - - QDir dir6; - dir6.setPath(true ? (cond ? "path1":"path2"):(cond ? "path3":"path4")); - - QDir *dir7 = new QDir("apath"); - dir7->setPath("adir"); - - QDir::addResourceSearchPath("somePath1"); - dir6.addResourceSearchPath("somePath2"); - - QMap m; - m.insertMulti("foo", "bar"); - QList m_keys= m.uniqueKeys(); - QList m_list= m.values(); - QMap mm; - m.unite(mm); - - QProcess pp; - pp.startCommand("stringContainingACommandWithArguments"); - pp.execute("stringContainingACommandWithArguments"); - pp.startDetached("stringContainingACommandWithArguments"); - - QResource rr; - bool a_bool = rr.compressionAlgorithm(); - - uint matchtype = 4; - if (matchtype == Qt::MatchRegularExpression) - matchtype = 0; - - QTextStream out; - out << "blabla" << Qt::endl; - out << Qt::hex << Qt::endl; - - QString a_string = "eeoaaoii"; - QString sep = "o"; - QStringList my_list = a_string.split(sep, Qt::KeepEmptyParts); - QStringList my_list2 = a_string.split(sep, Qt::KeepEmptyParts); - Qt::SplitBehavior behavior = Qt::KeepEmptyParts; - - QSet my_set; - QSet::iterator it_set = my_set.begin(); - QSet::const_iterator cit_set = my_set.cbegin(); - --it_set; - it_set + 1; - it_set - 1; - it_set += 1; - it_set -= 1; - ++it_set; //ok - cit_set -= 2; - cit_set += 1; - cit_set + 1; - cit_set - 1; - - QSetIterator i(my_set); - i.hasPrevious(); - i.previous(); - i.peekPrevious(); - i.findPrevious(a_string); - - QSet s; - s << 1 << 17 << 61 << 127 << 911; - s.rbegin(); - s.rend(); - s.crbegin(); - s.crend(); - - int my_int = 2; - QWidget* my_qwidget; - QObject* my_qobject; - QSignalMapper sigMap; - sigMap.mappedInt(1); - sigMap.mappedInt(my_int); - sigMap.mappedString("astring"); - sigMap.mappedString(a_string); - sigMap.mappedObject(my_qwidget); - sigMap.mappedObject(my_qobject); - - QHash my_hash; - QHash::iterator it_hash = my_hash.begin(); - QHash::const_iterator cit_hash = my_hash.cbegin(); - --it_hash; - it_hash + 1; - it_hash - 1; - it_hash += 1; - it_hash -= 1; - ++it_hash; //ok - cit_hash -= 2; - cit_hash += 1; - cit_hash + 1; - cit_hash - 1; - - QHashIterator ih(my_hash); - ih.hasPrevious(); - ih.previous(); - ih.peekPrevious(); - ih.findPrevious(a_string); - - QLinkedList linkList; - - qrand(); - qsrand(1); - - QTimeLine timeline; - timeline.setCurveShape(QTimeLine::CurveShape::EaseInCurve); - timeline.curveShape(); - - QDate myDate; - QDate *myOtherDate = new QDate(); - QCalendar myCalendar; - myDate.toString(Qt::DateFormat::TextDate); - myDate.toString("format", myCalendar); - QDateTime myDateTime = myDate.startOfDay(); - myDateTime = myOtherDate->startOfDay(); - - QVariant var1; - QVariant *var3; - QVariant var2; - bool bool1 = (QVariant::compare(var1, var2) > 0); - bool bool2 = (QVariant::compare(var1, var2) >= 0); - bool bool3 = (QVariant::compare(*var3, var2) < 0); - bool bool4 = (QVariant::compare(*var3, var2) <= 0); - -} - -void function1(QLinkedList arg) {}; -QLinkedList function2() { return {}; }; - -class aclass -{ -public: - QLinkedList m_linkList; - void m_function1(QLinkedList arg) {}; -}; - -namespace Qt { - void test_1() { - uint matchtype = 4; - if (matchtype == MatchRegularExpression) - matchtype = 0; - QTextStream out; - out << "blabla" << endl; - out << hex << endl; - - QString a_string = "eeoaaoii"; - QString sep = "o"; - QStringList my_list = a_string.split(sep, KeepEmptyParts); - SplitBehavior behavior = KeepEmptyParts; - - } -} - -void test_widgets() -{ - QWizard wizard; - wizard.visitedIds(); - - QButtonGroup buttonGroup; - buttonGroup.idClicked(1); - buttonGroup.idPressed(1); - buttonGroup.idReleased(1); - buttonGroup.idToggled(1, true); - - QComboBox combobox; - combobox.setSizeAdjustPolicy(QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLength); - QString astring = "asdf"; - combobox.currentIndexChanged(astring); - combobox.textActivated(astring); - combobox.textHighlighted(astring); - - QMacCocoaViewContainer *cocoa = NULL; - QMacNativeWidget *native = NULL; - - QWidget *a_widget = NULL; - QSplashScreen *splash1 = new QSplashScreen(a_widget); - QScreen *a_screen = NULL; - QSplashScreen *splash2 = new QSplashScreen(a_screen); - - QTextBrowser browser; - QString a_string = "aaa"; - browser.highlighted(a_string); - QUrl a_url; - browser.highlighted(a_url); - - QDockWidget dock; - dock.setFeatures(QDockWidget::AllDockWidgetFeatures); - - QDirModel dirModel; - - QGraphicsView graphview; - QMatrix matrix = graphview.matrix(); - graphview.setMatrix(matrix); - graphview.resetMatrix(); - - QStyle *style = NULL; - style->pixelMetric(QStyle::PixelMetric::PM_DefaultTopLevelMargin); - style->pixelMetric(QStyle::PixelMetric::PM_DefaultChildMargin); - style->pixelMetric(QStyle::PixelMetric::PM_DefaultLayoutSpacing); - style->subElementRect(QStyle::SubElement::SE_DialogButtonBoxLayoutItem, NULL); - -} - -void func_coco (QMacCocoaViewContainer *cocoa) {} -void func_native (QMacNativeWidget *native){} FAIL Test time = 4.11 sec ---------------------------------------------------------- Test Failed. "qt6-deprecated-api-fixes" end time: Oct 17 00:44 BST "qt6-deprecated-api-fixes" time elapsed: 00:00:04 ---------------------------------------------------------- 21/93 Testing: raw-environment-function 21/93 Test: raw-environment-function Command: "/usr/bin/python3" "run_tests.py" "raw-environment-function" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "raw-environment-function" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] raw-environment-function (plugin) [FAIL] raw-environment-function (Failed to build test. Check raw-environment-function/main.cpp.out for details) ------------------- Contents of raw-environment-function/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/raw-environment-function/main.cpp:2: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/raw-environment-function/main.cpp. ------------------- FAIL Test time = 2.37 sec ---------------------------------------------------------- Test Failed. "raw-environment-function" end time: Oct 17 00:44 BST "raw-environment-function" time elapsed: 00:00:02 ---------------------------------------------------------- 20/93 Testing: qvariant-template-instantiation 20/93 Test: qvariant-template-instantiation Command: "/usr/bin/python3" "run_tests.py" "qvariant-template-instantiation" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qvariant-template-instantiation" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qvariant-template-instantiation (plugin) [FAIL] qvariant-template-instantiation (Failed to build test. Check qvariant-template-instantiation/main.cpp.out for details) ------------------- Contents of qvariant-template-instantiation/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qvariant-template-instantiation/main.cpp:1: In file included from /usr/include/qt5/QtCore/QVariant:1: In file included from /usr/include/qt5/QtCore/qvariant.h:43: In file included from /usr/include/qt5/QtCore/qatomic.h:41: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qvariant-template-instantiation/main.cpp. ------------------- FAIL Test time = 2.56 sec ---------------------------------------------------------- Test Failed. "qvariant-template-instantiation" end time: Oct 17 00:44 BST "qvariant-template-instantiation" time elapsed: 00:00:02 ---------------------------------------------------------- 19/93 Testing: qt6-qlatin1stringchar-to-u 19/93 Test: qt6-qlatin1stringchar-to-u Command: "/usr/bin/python3" "run_tests.py" "qt6-qlatin1stringchar-to-u" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt6-qlatin1stringchar-to-u" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt6-qlatin1stringchar-to-u (plugin) [FAIL] qt6-qlatin1stringchar-to-u (Failed to build test. Check qt6-qlatin1stringchar-to-u/main.cpp.out for details) ------------------- Contents of qt6-qlatin1stringchar-to-u/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-qlatin1stringchar-to-u/main.cpp:1: In file included from /usr/include/qt5/QtCore/QLatin1Char:1: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-qlatin1stringchar-to-u/main.cpp. ------------------- [FAIL] qt6-qlatin1stringchar-to-u/main.cpp.clazy.yaml is missing!! [FAIL] qt6-qlatin1stringchar-to-u/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt6-qlatin1stringchar-to-u/main.cpp.clazy.fixed' [FAIL] qt6-qlatin1stringchar-to-u (plugin, fixits) --- qt6-qlatin1stringchar-to-u/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-qlatin1stringchar-to-u/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,126 +0,0 @@ -#include -#include -#include -#include -//static const type var{QLatin1String(value)}; -#define MY_CONSTANT(type, name, value) \ -static const type &name() { \ - static const type var{QLatin1String(QLatin1String(value))}; \ -return var; \ -} -#define MY_STRING_CONSTANT(name, value) MY_CONSTANT(QString, name, value) - -MY_STRING_CONSTANT(fooProperty, "foo") -MY_STRING_CONSTANT(barProperty, "bar") // Don't warn -MY_STRING_CONSTANT(bobProperty, QLatin1String(QLatin1String("bob"))) - -#define MY_CONSTANT_TEST(type, name, value) \ -static const type &name() { \ - static const type var{QString(value)}; \ -return var; \ -} -#define MY_STRING_CONSTANT_TEST(name, value) MY_CONSTANT_TEST(QString, name, value) -MY_STRING_CONSTANT_TEST(bobProperty_test, QLatin1String("bob_test")) -MY_STRING_CONSTANT_TEST(bobProperty_test1, QLatin1String(QLatin1String("bob_test1"))) -MY_STRING_CONSTANT_TEST(bobProperty_test2, QLatin1Char(false ? (true ? '*' : '/') : '/')) -#define MY_OTHER_CONSTANT(QString, name, value) \ -static const QString &name() { \ - static const QString var{QLatin1String(QLatin1String(value))}; \ -return var; \ -} - -MY_OTHER_CONSTANT(QString, other_test, QLatin1String("otherbob")) - -void receivingQChar(QChar s1) {} -void receivingQLatin1Char(QLatin1Char s1) {} - -void receivingQString(QString s1) {} -void receivingQLatin1String(QLatin1String s1) {} - -#define PREFIXX '*' -#define PREFIX "foo" -void test() -{ - QChar c1 = u'*'; - QChar c11 = u'*'; // remove the check - - QString s = "aaa"; - bool b = s.startsWith(u'/'); - - s += u'.'; - - QString appPrefix = s + u'\\'; - appPrefix = s + u'\''; - - if (s.at(1) == u'*') - b = true; - - QChar quotes[] = { u'"', u'"' }; - QChar c2 = true ? u'*' : u'/'; - - bool myBool = true; - QChar c3 = myBool ? (true ? u'*' : u'/') : u'/'; - - int i = s.lastIndexOf(u'*'); - - const QString sc = "sc"; - QString s2 = QDir::cleanPath(sc + u'*'); - - s2.insert(1, u'*'); - - - receivingQChar(u'/'); - - receivingQLatin1Char(u'/'); - - QLatin1Char toto = u'/'; - - QChar char_with_macro = QLatin1Char(PREFIXX); // should not be fixed - - QChar ccc = u'/'; - c1 = true ? (true ? u'*' : u'/') : u'*'; - // nested QLatin1String should not be picked explicitly - - c1 = QLatin1Char(s.startsWith(u"sd") ? '/' : '*');// fix not supported (bool under CXXMemberCallExpr) - - // The outer QLatin1Char fix is not supported, but the inside ones are. - c1 = QLatin1Char(s.startsWith(u'_') ? '*' : '/'); - c1 = QLatin1Char(s.startsWith(u"aa") ? - (true ? u'_' : u'_') : u'_'); - c1 = QLatin1Char(s.startsWith(u'/') ? - u'_' : QLatin1Char(s.startsWith(u'_') ? '*' : '/')); - // Support fixit for the QLatin1Char("_") calls in the above cases - - QString s1 = u"str"; - s2 = QString(u"s2"); - s1 += u"str"; - s1 = true ? u"foo" : u"bar"; - s1.append(u"appending"); - - s1 = myBool ? (true ? u"foo" : u"bar") : u"bar"; - - receivingQString( u"str"); - receivingQLatin1String( u"latin"); - - QLatin1String totoo = u"toto"; - - QString sss = u"str"; - s1 = true ? (true ? u"foo" : u"bar") : u"bar"; - // nested QLatin1String should not be picked explicitly - - const char* myChar = "foo"; - QString ww = QLatin1String(myChar); // fix not supported - s1 = QLatin1String(myBool ? (true ? "foo" : myChar) : "bar"); // fix not supported (because of myChar) - QString string_with_macro = QLatin1String(PREFIX "bar"); // fix not supported (macro present) - s1 = QLatin1String(s.startsWith(u'/') ? "foo" : "bar");// fix not supported (bool under CXXMemberCallExpr) - - // The outer QLatin1String fix is not supported, but the inside ones are. - s1 = QLatin1String(s.startsWith(u"fixme") ? "foo" : "bar");// - s1 = QLatin1String(s.startsWith(u'/') ? - (true ? u"fixme" : u"fixme") : u"fixme"); - s1 = QLatin1String(s.startsWith(u'/') ? - u"fixme" : QLatin1String(s.startsWith(u"fixme") ? "foo" : "bar")); - // Support fixit for the QLatin1Literal("fixme") calls in the above cases - -} - FAIL Test time = 2.75 sec ---------------------------------------------------------- Test Failed. "qt6-qlatin1stringchar-to-u" end time: Oct 17 00:44 BST "qt6-qlatin1stringchar-to-u" time elapsed: 00:00:02 ---------------------------------------------------------- 22/93 Testing: reserve-candidates 22/93 Test: reserve-candidates Command: "/usr/bin/python3" "run_tests.py" "reserve-candidates" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "reserve-candidates" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] reserve-candidates/main2.cpp (plugin) [OK] reserve-candidates/main.cpp (plugin) [FAIL] reserve-candidates (Failed to build test. Check reserve-candidates/main2.cpp.out for details) ------------------- Contents of reserve-candidates/main2.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/reserve-candidates/main2.cpp:1: In file included from /usr/include/qt5/QtCore/QVector:1: In file included from /usr/include/qt5/QtCore/qvector.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/reserve-candidates/main2.cpp. ------------------- [FAIL] reserve-candidates (Failed to build test. Check reserve-candidates/main.cpp.out for details) ------------------- Contents of reserve-candidates/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/reserve-candidates/main.cpp:1: In file included from /usr/include/qt5/QtCore/QVector:1: In file included from /usr/include/qt5/QtCore/qvector.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/reserve-candidates/main.cpp. ------------------- FAIL Test time = 2.29 sec ---------------------------------------------------------- Test Failed. "reserve-candidates" end time: Oct 17 00:44 BST "reserve-candidates" time elapsed: 00:00:02 ---------------------------------------------------------- 23/93 Testing: signal-with-return-value 23/93 Test: signal-with-return-value Command: "/usr/bin/python3" "run_tests.py" "signal-with-return-value" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "signal-with-return-value" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] signal-with-return-value (plugin) [FAIL] signal-with-return-value (Failed to build test. Check signal-with-return-value/main.cpp.out for details) ------------------- Contents of signal-with-return-value/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/signal-with-return-value/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/signal-with-return-value/main.cpp. ------------------- FAIL Test time = 2.42 sec ---------------------------------------------------------- Test Failed. "signal-with-return-value" end time: Oct 17 00:44 BST "signal-with-return-value" time elapsed: 00:00:02 ---------------------------------------------------------- 24/93 Testing: thread-with-slots 24/93 Test: thread-with-slots Command: "/usr/bin/python3" "run_tests.py" "thread-with-slots" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "thread-with-slots" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] thread-with-slots (plugin) [FAIL] thread-with-slots (Failed to build test. Check thread-with-slots/main.cpp.out for details) ------------------- Contents of thread-with-slots/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/thread-with-slots/main.cpp:1: In file included from /usr/include/qt5/QtCore/QThread:1: In file included from /usr/include/qt5/QtCore/qthread.h:44: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/thread-with-slots/main.cpp. ------------------- FAIL Test time = 2.80 sec ---------------------------------------------------------- Test Failed. "thread-with-slots" end time: Oct 17 00:44 BST "thread-with-slots" time elapsed: 00:00:02 ---------------------------------------------------------- 25/93 Testing: tr-non-literal 25/93 Test: tr-non-literal Command: "/usr/bin/python3" "run_tests.py" "tr-non-literal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "tr-non-literal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] tr-non-literal (plugin) [FAIL] tr-non-literal (Failed to build test. Check tr-non-literal/main.cpp.out for details) ------------------- Contents of tr-non-literal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/tr-non-literal/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/tr-non-literal/main.cpp. ------------------- FAIL Test time = 2.75 sec ---------------------------------------------------------- Test Failed. "tr-non-literal" end time: Oct 17 00:44 BST "tr-non-literal" time elapsed: 00:00:02 ---------------------------------------------------------- 27/93 Testing: use-chrono-in-qtimer 27/93 Test: use-chrono-in-qtimer Command: "/usr/bin/python3" "run_tests.py" "use-chrono-in-qtimer" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "use-chrono-in-qtimer" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] use-chrono-in-qtimer/missing-include.cpp (plugin) [OK] use-chrono-in-qtimer/main.cpp (plugin) [FAIL] use-chrono-in-qtimer (Failed to build test. Check use-chrono-in-qtimer/missing-include.cpp.out for details) ------------------- Contents of use-chrono-in-qtimer/missing-include.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/use-chrono-in-qtimer/missing-include.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/use-chrono-in-qtimer/missing-include.cpp. ------------------- [FAIL] use-chrono-in-qtimer (Failed to build test. Check use-chrono-in-qtimer/main.cpp.out for details) ------------------- Contents of use-chrono-in-qtimer/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/use-chrono-in-qtimer/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/use-chrono-in-qtimer/main.cpp. ------------------- [FAIL] use-chrono-in-qtimer/main.cpp.clazy.yaml is missing!! [FAIL] use-chrono-in-qtimer/missing-include.cpp.clazy.yaml is missing!! [FAIL] use-chrono-in-qtimer/main.cpp.clazy-standalone.yaml is missing!! [FAIL] use-chrono-in-qtimer/missing-include.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'use-chrono-in-qtimer/main.cpp.clazy.fixed' [FAIL] use-chrono-in-qtimer/main.cpp (plugin, fixits) --- use-chrono-in-qtimer/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ use-chrono-in-qtimer/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -#include -#include -#include -#include - -using namespace std::chrono_literals; - -void test() -{ - QTimer timer; - - timer.setInterval(1s); // Warn - timer.setInterval(1200ms); // Warn - timer.setInterval(2min); // Warn - timer.setInterval(5h); // Warn - timer.setInterval(1min); // Warn - timer.setInterval(15min); // Warn - timer.setInterval(1000+1000); // Not really worth it - timer.setInterval(1s); // OK - timer.setInterval(1200ms); // OK - timer.setInterval(0); // OK - - timer.start(15s); // Warn - timer.start(15s); // OK - timer.start(); // OK - - timer.singleShot(1s, [] {}); // Warn - QTimer::singleShot(1s, [] {}); // Warn -} Error comparing files:[Errno 2] No such file or directory: 'use-chrono-in-qtimer/missing-include.cpp.clazy.fixed' [FAIL] use-chrono-in-qtimer/missing-include.cpp (plugin, fixits) --- use-chrono-in-qtimer/missing-include.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ use-chrono-in-qtimer/missing-include.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#include -#include -#include -#include - -using namespace std::chrono_literals; - -void test() -{ - QTimer timer; - timer.setInterval(1s); // Warn -} FAIL Test time = 2.66 sec ---------------------------------------------------------- Test Failed. "use-chrono-in-qtimer" end time: Oct 17 00:44 BST "use-chrono-in-qtimer" time elapsed: 00:00:02 ---------------------------------------------------------- 26/93 Testing: unneeded-cast 26/93 Test: unneeded-cast Command: "/usr/bin/python3" "run_tests.py" "unneeded-cast" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "unneeded-cast" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] unneeded-cast/dynamic_cast_over_qobjectcast.cpp (plugin) [OK] unneeded-cast/main.cpp (plugin) [FAIL] unneeded-cast (Failed to build test. Check unneeded-cast/dynamic_cast_over_qobjectcast.cpp.out for details) ------------------- Contents of unneeded-cast/dynamic_cast_over_qobjectcast.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unneeded-cast/dynamic_cast_over_qobjectcast.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unneeded-cast/dynamic_cast_over_qobjectcast.cpp. ------------------- [FAIL] unneeded-cast (Failed to build test. Check unneeded-cast/main.cpp.out for details) ------------------- Contents of unneeded-cast/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unneeded-cast/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unneeded-cast/main.cpp. ------------------- FAIL Test time = 2.83 sec ---------------------------------------------------------- Test Failed. "unneeded-cast" end time: Oct 17 00:44 BST "unneeded-cast" time elapsed: 00:00:02 ---------------------------------------------------------- 28/93 Testing: connect-by-name 28/93 Test: connect-by-name Command: "/usr/bin/python3" "run_tests.py" "connect-by-name" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "connect-by-name" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] connect-by-name (plugin) [FAIL] connect-by-name (Failed to build test. Check connect-by-name/main.cpp.out for details) ------------------- Contents of connect-by-name/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-by-name/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-by-name/main.cpp. ------------------- FAIL Test time = 2.80 sec ---------------------------------------------------------- Test Failed. "connect-by-name" end time: Oct 17 00:44 BST "connect-by-name" time elapsed: 00:00:02 ---------------------------------------------------------- 17/93 Testing: qt6-header-fixes 17/93 Test: qt6-header-fixes Command: "/usr/bin/python3" "run_tests.py" "qt6-header-fixes" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt6-header-fixes" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt6-header-fixes (plugin) [FAIL] qt6-header-fixes (Failed to build test. Check qt6-header-fixes/main.cpp.out for details) ------------------- Contents of qt6-header-fixes/main.cpp.out: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-header-fixes/main.cpp:1:10: warning: including QtCore/QAbstractState [-Wclazy-qt6-header-fixes] #include ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-header-fixes/main.cpp:1: In file included from /usr/include/qt5/QtCore/QAbstractState:1: In file included from /usr/include/qt5/QtCore/qabstractstate.h:43: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 warning and 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt6-header-fixes/main.cpp. ------------------- [FAIL] qt6-header-fixes/main.cpp.clazy.yaml is missing!! [FAIL] qt6-header-fixes/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qt6-header-fixes/main.cpp.clazy.fixed' [FAIL] qt6-header-fixes (plugin, fixits) --- qt6-header-fixes/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qt6-header-fixes/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,100 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include FAIL Test time = 7.04 sec ---------------------------------------------------------- Test Failed. "qt6-header-fixes" end time: Oct 17 00:44 BST "qt6-header-fixes" time elapsed: 00:00:07 ---------------------------------------------------------- 29/93 Testing: connect-non-signal 29/93 Test: connect-non-signal Command: "/usr/bin/python3" "run_tests.py" "connect-non-signal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "connect-non-signal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] connect-non-signal/bug375239.cpp (plugin) [OK] connect-non-signal/bug375748.cpp (plugin) [OK] connect-non-signal/bug376137.cpp (plugin) [OK] connect-non-signal/bug374951.cpp (plugin) [OK] connect-non-signal/main.cpp (plugin) [OK] connect-non-signal/392441.cpp (plugin) [OK] connect-non-signal/bug431186.cpp (plugin) [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/bug375239.cpp.out for details) ------------------- Contents of connect-non-signal/bug375239.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug375239.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug375239.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/bug374951.cpp.out for details) ------------------- Contents of connect-non-signal/bug374951.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug374951.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug374951.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/bug375748.cpp.out for details) ------------------- Contents of connect-non-signal/bug375748.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug375748.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug375748.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/bug376137.cpp.out for details) ------------------- Contents of connect-non-signal/bug376137.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug376137.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug376137.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/main.cpp.out for details) ------------------- Contents of connect-non-signal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/main.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/392441.cpp.out for details) ------------------- Contents of connect-non-signal/392441.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/392441.cpp:1: In file included from /usr/include/qt5/QtWidgets/QComboBox:1: In file included from /usr/include/qt5/QtWidgets/qcombobox.h:43: In file included from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/include/qt5/QtGui/qtguiglobal.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/392441.cpp. ------------------- [FAIL] connect-non-signal (Failed to build test. Check connect-non-signal/bug431186.cpp.out for details) ------------------- Contents of connect-non-signal/bug431186.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug431186.cpp:1: In file included from /usr/include/qt5/QtWidgets/QTreeWidget:1: In file included from /usr/include/qt5/QtWidgets/qtreewidget.h:43: In file included from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/include/qt5/QtGui/qtguiglobal.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-non-signal/bug431186.cpp. ------------------- FAIL Test time = 3.99 sec ---------------------------------------------------------- Test Failed. "connect-non-signal" end time: Oct 17 00:44 BST "connect-non-signal" time elapsed: 00:00:03 ---------------------------------------------------------- 31/93 Testing: container-anti-pattern 31/93 Test: container-anti-pattern Command: "/usr/bin/python3" "run_tests.py" "container-anti-pattern" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "container-anti-pattern" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] container-anti-pattern/qset.cpp (plugin) [OK] container-anti-pattern/main.cpp (plugin) [FAIL] container-anti-pattern (Failed to build test. Check container-anti-pattern/qset.cpp.out for details) ------------------- Contents of container-anti-pattern/qset.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-anti-pattern/qset.cpp:1: In file included from /usr/include/qt5/QtCore/QSet:1: In file included from /usr/include/qt5/QtCore/qset.h:43: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-anti-pattern/qset.cpp. ------------------- [FAIL] container-anti-pattern (Failed to build test. Check container-anti-pattern/main.cpp.out for details) ------------------- Contents of container-anti-pattern/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-anti-pattern/main.cpp:1: In file included from /usr/include/qt5/QtCore/QSet:1: In file included from /usr/include/qt5/QtCore/qset.h:43: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/container-anti-pattern/main.cpp. ------------------- FAIL Test time = 3.01 sec ---------------------------------------------------------- Test Failed. "container-anti-pattern" end time: Oct 17 00:44 BST "container-anti-pattern" time elapsed: 00:00:03 ---------------------------------------------------------- 33/93 Testing: fully-qualified-moc-types 33/93 Test: fully-qualified-moc-types Command: "/usr/bin/python3" "run_tests.py" "fully-qualified-moc-types" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "fully-qualified-moc-types" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] fully-qualified-moc-types (plugin) [FAIL] fully-qualified-moc-types (Failed to build test. Check fully-qualified-moc-types/main.cpp.out for details) ------------------- Contents of fully-qualified-moc-types/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/fully-qualified-moc-types/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/fully-qualified-moc-types/main.cpp. ------------------- FAIL Test time = 2.94 sec ---------------------------------------------------------- Test Failed. "fully-qualified-moc-types" end time: Oct 17 00:44 BST "fully-qualified-moc-types" time elapsed: 00:00:02 ---------------------------------------------------------- 30/93 Testing: connect-not-normalized 30/93 Test: connect-not-normalized Command: "/usr/bin/python3" "run_tests.py" "connect-not-normalized" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "connect-not-normalized" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] connect-not-normalized (plugin) [FAIL] connect-not-normalized (Failed to build test. Check connect-not-normalized/main.cpp.out for details) ------------------- Contents of connect-not-normalized/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-not-normalized/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-not-normalized/main.cpp. ------------------- FAIL Test time = 3.30 sec ---------------------------------------------------------- Test Failed. "connect-not-normalized" end time: Oct 17 00:44 BST "connect-not-normalized" time elapsed: 00:00:03 ---------------------------------------------------------- 34/93 Testing: lambda-in-connect 34/93 Test: lambda-in-connect Command: "/usr/bin/python3" "run_tests.py" "lambda-in-connect" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "lambda-in-connect" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] lambda-in-connect (plugin) [FAIL] lambda-in-connect (Failed to build test. Check lambda-in-connect/main.cpp.out for details) ------------------- Contents of lambda-in-connect/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lambda-in-connect/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lambda-in-connect/main.cpp. ------------------- FAIL Test time = 3.42 sec ---------------------------------------------------------- Test Failed. "lambda-in-connect" end time: Oct 17 00:44 BST "lambda-in-connect" time elapsed: 00:00:03 ---------------------------------------------------------- 35/93 Testing: lambda-unique-connection 35/93 Test: lambda-unique-connection Command: "/usr/bin/python3" "run_tests.py" "lambda-unique-connection" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "lambda-unique-connection" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] lambda-unique-connection (plugin) [FAIL] lambda-unique-connection (Failed to build test. Check lambda-unique-connection/main.cpp.out for details) ------------------- Contents of lambda-unique-connection/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lambda-unique-connection/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lambda-unique-connection/main.cpp. ------------------- FAIL Test time = 2.83 sec ---------------------------------------------------------- Test Failed. "lambda-unique-connection" end time: Oct 17 00:44 BST "lambda-unique-connection" time elapsed: 00:00:02 ---------------------------------------------------------- 32/93 Testing: empty-qstringliteral 32/93 Test: empty-qstringliteral Command: "/usr/bin/python3" "run_tests.py" "empty-qstringliteral" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "empty-qstringliteral" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] empty-qstringliteral (plugin) [FAIL] empty-qstringliteral (Failed to build test. Check empty-qstringliteral/main.cpp.out for details) ------------------- Contents of empty-qstringliteral/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/empty-qstringliteral/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/empty-qstringliteral/main.cpp. ------------------- FAIL Test time = 4.11 sec ---------------------------------------------------------- Test Failed. "empty-qstringliteral" end time: Oct 17 00:44 BST "empty-qstringliteral" time elapsed: 00:00:04 ---------------------------------------------------------- 39/93 Testing: qcolor-from-literal 39/93 Test: qcolor-from-literal Command: "/usr/bin/python3" "run_tests.py" "qcolor-from-literal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qcolor-from-literal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qcolor-from-literal (plugin) [FAIL] qcolor-from-literal (Failed to build test. Check qcolor-from-literal/main.cpp.out for details) ------------------- Contents of qcolor-from-literal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qcolor-from-literal/main.cpp:1: In file included from /usr/include/qt5/QtGui/QColor:1: In file included from /usr/include/qt5/QtGui/qcolor.h:43: In file included from /usr/include/qt5/QtGui/qtguiglobal.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qcolor-from-literal/main.cpp. ------------------- FAIL Test time = 2.14 sec ---------------------------------------------------------- Test Failed. "qcolor-from-literal" end time: Oct 17 00:44 BST "qcolor-from-literal" time elapsed: 00:00:02 ---------------------------------------------------------- 38/93 Testing: overloaded-signal 38/93 Test: overloaded-signal Command: "/usr/bin/python3" "run_tests.py" "overloaded-signal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "overloaded-signal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] overloaded-signal (plugin) [FAIL] overloaded-signal (Failed to build test. Check overloaded-signal/main.cpp.out for details) ------------------- Contents of overloaded-signal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/overloaded-signal/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/overloaded-signal/main.cpp. ------------------- FAIL Test time = 2.35 sec ---------------------------------------------------------- Test Failed. "overloaded-signal" end time: Oct 17 00:44 BST "overloaded-signal" time elapsed: 00:00:02 ---------------------------------------------------------- 37/93 Testing: mutable-container-key 37/93 Test: mutable-container-key Command: "/usr/bin/python3" "run_tests.py" "mutable-container-key" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "mutable-container-key" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] mutable-container-key (plugin) [FAIL] mutable-container-key (Failed to build test. Check mutable-container-key/main.cpp.out for details) ------------------- Contents of mutable-container-key/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/mutable-container-key/main.cpp:1: In file included from /usr/include/qt5/QtCore/QHash:1: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/mutable-container-key/main.cpp. ------------------- FAIL Test time = 2.58 sec ---------------------------------------------------------- Test Failed. "mutable-container-key" end time: Oct 17 00:44 BST "mutable-container-key" time elapsed: 00:00:02 ---------------------------------------------------------- 36/93 Testing: lowercase-qml-type-name 36/93 Test: lowercase-qml-type-name Command: "/usr/bin/python3" "run_tests.py" "lowercase-qml-type-name" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "lowercase-qml-type-name" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] lowercase-qml-type-name (plugin) [FAIL] lowercase-qml-type-name (Failed to build test. Check lowercase-qml-type-name/main.cpp.out for details) ------------------- Contents of lowercase-qml-type-name/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lowercase-qml-type-name/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/lowercase-qml-type-name/main.cpp. ------------------- FAIL Test time = 2.91 sec ---------------------------------------------------------- Test Failed. "lowercase-qml-type-name" end time: Oct 17 00:44 BST "lowercase-qml-type-name" time elapsed: 00:00:02 ---------------------------------------------------------- 40/93 Testing: qdatetime-utc 40/93 Test: qdatetime-utc Command: "/usr/bin/python3" "run_tests.py" "qdatetime-utc" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qdatetime-utc" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qdatetime-utc (plugin) [FAIL] qdatetime-utc (Failed to build test. Check qdatetime-utc/main.cpp.out for details) ------------------- Contents of qdatetime-utc/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qdatetime-utc/main.cpp:1: In file included from /usr/include/qt5/QtCore/QDateTime:1: In file included from /usr/include/qt5/QtCore/qdatetime.h:44: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qdatetime-utc/main.cpp. ------------------- [FAIL] qdatetime-utc/main.cpp.clazy.yaml is missing!! [FAIL] qdatetime-utc/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qdatetime-utc/main.cpp.clazy.fixed' [FAIL] qdatetime-utc (plugin, fixits) --- qdatetime-utc/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qdatetime-utc/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -#include - -void test() -{ - QDateTime::currentDateTime(); // OK - QDateTime::currentDateTimeUtc(); // OK - QDateTime::currentDateTimeUtc().toTime_t(); // Warning - QDateTime::currentDateTimeUtc(); // Warning - - -} FAIL Test time = 2.13 sec ---------------------------------------------------------- Test Failed. "qdatetime-utc" end time: Oct 17 00:44 BST "qdatetime-utc" time elapsed: 00:00:02 ---------------------------------------------------------- 41/93 Testing: qenums 41/93 Test: qenums Command: "/usr/bin/python3" "run_tests.py" "qenums" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qenums" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qenums (plugin) [FAIL] qenums (Failed to build test. Check qenums/main.cpp.out for details) ------------------- Contents of qenums/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qenums/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qenums/main.cpp. ------------------- FAIL Test time = 2.37 sec ---------------------------------------------------------- Test Failed. "qenums" end time: Oct 17 00:44 BST "qenums" time elapsed: 00:00:02 ---------------------------------------------------------- 42/93 Testing: qfileinfo-exists 42/93 Test: qfileinfo-exists Command: "/usr/bin/python3" "run_tests.py" "qfileinfo-exists" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qfileinfo-exists" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qfileinfo-exists (plugin) [FAIL] qfileinfo-exists (Failed to build test. Check qfileinfo-exists/main.cpp.out for details) ------------------- Contents of qfileinfo-exists/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qfileinfo-exists/main.cpp:1: In file included from /usr/include/qt5/QtCore/QFileInfo:1: In file included from /usr/include/qt5/QtCore/qfileinfo.h:43: In file included from /usr/include/qt5/QtCore/qfile.h:44: In file included from /usr/include/qt5/QtCore/qfiledevice.h:43: In file included from /usr/include/qt5/QtCore/qiodevice.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qfileinfo-exists/main.cpp. ------------------- FAIL Test time = 2.44 sec ---------------------------------------------------------- Test Failed. "qfileinfo-exists" end time: Oct 17 00:44 BST "qfileinfo-exists" time elapsed: 00:00:02 ---------------------------------------------------------- 43/93 Testing: qgetenv 43/93 Test: qgetenv Command: "/usr/bin/python3" "run_tests.py" "qgetenv" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qgetenv" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qgetenv (plugin) [FAIL] qgetenv (Failed to build test. Check qgetenv/main.cpp.out for details) ------------------- Contents of qgetenv/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qgetenv/main.cpp:1: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qgetenv/main.cpp. ------------------- [FAIL] qgetenv/main.cpp.clazy.yaml is missing!! [FAIL] qgetenv/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qgetenv/main.cpp.clazy.fixed' [FAIL] qgetenv (plugin, fixits) --- qgetenv/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qgetenv/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#include -#include - -int test() -{ - - qEnvironmentVariableIsEmpty("Foo"); - bool b = qEnvironmentVariableIsSet("Foo"); - QByteArray ba = qgetenv("Foo"); - int a = qEnvironmentVariableIntValue("Foo"); - return 0; -} FAIL Test time = 1.61 sec ---------------------------------------------------------- Test Failed. "qgetenv" end time: Oct 17 00:44 BST "qgetenv" time elapsed: 00:00:01 ---------------------------------------------------------- 47/93 Testing: qstring-insensitive-allocation 47/93 Test: qstring-insensitive-allocation Command: "/usr/bin/python3" "run_tests.py" "qstring-insensitive-allocation" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-insensitive-allocation" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-insensitive-allocation (plugin) [FAIL] qstring-insensitive-allocation (Failed to build test. Check qstring-insensitive-allocation/main.cpp.out for details) ------------------- Contents of qstring-insensitive-allocation/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-insensitive-allocation/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-insensitive-allocation/main.cpp. ------------------- FAIL Test time = 1.82 sec ---------------------------------------------------------- Test Failed. "qstring-insensitive-allocation" end time: Oct 17 00:44 BST "qstring-insensitive-allocation" time elapsed: 00:00:01 ---------------------------------------------------------- 44/93 Testing: qmap-with-pointer-key 44/93 Test: qmap-with-pointer-key Command: "/usr/bin/python3" "run_tests.py" "qmap-with-pointer-key" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qmap-with-pointer-key" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qmap-with-pointer-key (plugin) [FAIL] qmap-with-pointer-key (Failed to build test. Check qmap-with-pointer-key/main.cpp.out for details) ------------------- Contents of qmap-with-pointer-key/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qmap-with-pointer-key/main.cpp:1: In file included from /usr/include/qt5/QtCore/QMap:1: In file included from /usr/include/qt5/QtCore/qmap.h:43: In file included from /usr/include/qt5/QtCore/qiterator.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qmap-with-pointer-key/main.cpp. ------------------- FAIL Test time = 2.30 sec ---------------------------------------------------------- Test Failed. "qmap-with-pointer-key" end time: Oct 17 00:44 BST "qmap-with-pointer-key" time elapsed: 00:00:02 ---------------------------------------------------------- 46/93 Testing: qstring-comparison-to-implicit-char 46/93 Test: qstring-comparison-to-implicit-char Command: "/usr/bin/python3" "run_tests.py" "qstring-comparison-to-implicit-char" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-comparison-to-implicit-char" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-comparison-to-implicit-char (plugin) [FAIL] qstring-comparison-to-implicit-char (Failed to build test. Check qstring-comparison-to-implicit-char/main.cpp.out for details) ------------------- Contents of qstring-comparison-to-implicit-char/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-comparison-to-implicit-char/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-comparison-to-implicit-char/main.cpp. ------------------- FAIL Test time = 2.56 sec ---------------------------------------------------------- Test Failed. "qstring-comparison-to-implicit-char" end time: Oct 17 00:44 BST "qstring-comparison-to-implicit-char" time elapsed: 00:00:02 ---------------------------------------------------------- 49/93 Testing: qt-macros 49/93 Test: qt-macros Command: "/usr/bin/python3" "run_tests.py" "qt-macros" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qt-macros" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qt-macros/main.cpp (plugin) [FAIL] qt-macros (Failed to build test. Check qt-macros/main.cpp.out for details) ------------------- Contents of qt-macros/main.cpp.out: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-macros/main.cpp:1:2: warning: Include qglobal.h before testing Q_OS_ macros [-Wclazy-qt-macros] #ifdef Q_OS_WIN // Warning: testing before including qglobal.h ^ /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-macros/main.cpp:4:5: warning: Include qglobal.h before testing Q_OS_ macros [-Wclazy-qt-macros] #if defined(Q_OS_WIN) // Warning: testing before including qglobal.h ^ In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-macros/main.cpp:7: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 2 warnings and 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qt-macros/main.cpp. ------------------- FAIL Test time = 1.88 sec ---------------------------------------------------------- Test Failed. "qt-macros" end time: Oct 17 00:44 BST "qt-macros" time elapsed: 00:00:01 ---------------------------------------------------------- 45/93 Testing: qstring-arg 45/93 Test: qstring-arg Command: "/usr/bin/python3" "run_tests.py" "qstring-arg" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-arg" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-arg/fill-char-overloads.cpp (plugin) [OK] qstring-arg/qlatin1string.cpp (plugin) [FAIL] qstring-arg (Failed to build test. Check qstring-arg/fill-char-overloads.cpp.out for details) ------------------- Contents of qstring-arg/fill-char-overloads.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/fill-char-overloads.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/fill-char-overloads.cpp. ------------------- [FAIL] qstring-arg (Failed to build test. Check qstring-arg/qlatin1string.cpp.out for details) ------------------- Contents of qstring-arg/qlatin1string.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/qlatin1string.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/qlatin1string.cpp. ------------------- [OK] qstring-arg/main.cpp (plugin) [FAIL] qstring-arg (Failed to build test. Check qstring-arg/main.cpp.out for details) ------------------- Contents of qstring-arg/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-arg/main.cpp. ------------------- FAIL Test time = 3.35 sec ---------------------------------------------------------- Test Failed. "qstring-arg" end time: Oct 17 00:44 BST "qstring-arg" time elapsed: 00:00:03 ---------------------------------------------------------- 48/93 Testing: qstring-ref 48/93 Test: qstring-ref Command: "/usr/bin/python3" "run_tests.py" "qstring-ref" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-ref" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-ref/main.cpp (plugin) [OK] qstring-ref/bug376737.cpp (plugin) [FAIL] qstring-ref (Failed to build test. Check qstring-ref/main.cpp.out for details) ------------------- Contents of qstring-ref/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-ref/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-ref/main.cpp. ------------------- [FAIL] qstring-ref (Failed to build test. Check qstring-ref/bug376737.cpp.out for details) ------------------- Contents of qstring-ref/bug376737.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-ref/bug376737.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-ref/bug376737.cpp. ------------------- FAIL Test time = 2.82 sec ---------------------------------------------------------- Test Failed. "qstring-ref" end time: Oct 17 00:44 BST "qstring-ref" time elapsed: 00:00:02 ---------------------------------------------------------- 50/93 Testing: strict-iterators 50/93 Test: strict-iterators Command: "/usr/bin/python3" "run_tests.py" "strict-iterators" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "strict-iterators" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] strict-iterators (plugin) [FAIL] strict-iterators (Failed to build test. Check strict-iterators/main.cpp.out for details) ------------------- Contents of strict-iterators/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/strict-iterators/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/strict-iterators/main.cpp. ------------------- FAIL Test time = 2.41 sec ---------------------------------------------------------- Test Failed. "strict-iterators" end time: Oct 17 00:44 BST "strict-iterators" time elapsed: 00:00:02 ---------------------------------------------------------- 55/93 Testing: wrong-qglobalstatic 55/93 Test: wrong-qglobalstatic Command: "/usr/bin/python3" "run_tests.py" "wrong-qglobalstatic" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "wrong-qglobalstatic" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] wrong-qglobalstatic (plugin) [FAIL] wrong-qglobalstatic (Failed to build test. Check wrong-qglobalstatic/main.cpp.out for details) ------------------- Contents of wrong-qglobalstatic/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/wrong-qglobalstatic/main.cpp:1: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/wrong-qglobalstatic/main.cpp. ------------------- FAIL Test time = 1.18 sec ---------------------------------------------------------- Test Failed. "wrong-qglobalstatic" end time: Oct 17 00:44 BST "wrong-qglobalstatic" time elapsed: 00:00:01 ---------------------------------------------------------- 52/93 Testing: unused-non-trivial-variable 52/93 Test: unused-non-trivial-variable Command: "/usr/bin/python3" "run_tests.py" "unused-non-trivial-variable" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "unused-non-trivial-variable" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] unused-non-trivial-variable/no-whitelist.cpp (plugin) [OK] unused-non-trivial-variable/main.cpp (plugin) [FAIL] unused-non-trivial-variable (Failed to build test. Check unused-non-trivial-variable/main.cpp.out for details) ------------------- Contents of unused-non-trivial-variable/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unused-non-trivial-variable/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unused-non-trivial-variable/main.cpp. ------------------- [FAIL] unused-non-trivial-variable (Failed to build test. Check unused-non-trivial-variable/no-whitelist.cpp.out for details) ------------------- Contents of unused-non-trivial-variable/no-whitelist.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unused-non-trivial-variable/no-whitelist.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/unused-non-trivial-variable/no-whitelist.cpp. ------------------- FAIL Test time = 2.35 sec ---------------------------------------------------------- Test Failed. "unused-non-trivial-variable" end time: Oct 17 00:44 BST "unused-non-trivial-variable" time elapsed: 00:00:02 ---------------------------------------------------------- 51/93 Testing: temporary-iterator 51/93 Test: temporary-iterator Command: "/usr/bin/python3" "run_tests.py" "temporary-iterator" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "temporary-iterator" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] temporary-iterator (plugin) [FAIL] temporary-iterator (Failed to build test. Check temporary-iterator/main.cpp.out for details) ------------------- Contents of temporary-iterator/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/temporary-iterator/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/temporary-iterator/main.cpp. ------------------- FAIL Test time = 2.58 sec ---------------------------------------------------------- Test Failed. "temporary-iterator" end time: Oct 17 00:44 BST "temporary-iterator" time elapsed: 00:00:02 ---------------------------------------------------------- 56/93 Testing: auto-unexpected-qstringbuilder 56/93 Test: auto-unexpected-qstringbuilder Command: "/usr/bin/python3" "run_tests.py" "auto-unexpected-qstringbuilder" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "auto-unexpected-qstringbuilder" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] auto-unexpected-qstringbuilder (plugin) [FAIL] auto-unexpected-qstringbuilder (Failed to build test. Check auto-unexpected-qstringbuilder/main.cpp.out for details) ------------------- Contents of auto-unexpected-qstringbuilder/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/auto-unexpected-qstringbuilder/main.cpp:2: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/auto-unexpected-qstringbuilder/main.cpp. ------------------- [FAIL] auto-unexpected-qstringbuilder/main.cpp.clazy.yaml is missing!! [FAIL] auto-unexpected-qstringbuilder/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'auto-unexpected-qstringbuilder/main.cpp.clazy.fixed' [FAIL] auto-unexpected-qstringbuilder (plugin, fixits) --- auto-unexpected-qstringbuilder/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ auto-unexpected-qstringbuilder/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -#define QT_USE_QSTRINGBUILDER -#include - -void test() -{ - const QString s1 = "tests/" + QString::fromLatin1("foo"); // Warning - const QString s2 = "tests/" % QString::fromLatin1("foo"); // Warning - const QString s3 = "tests/" + QString::fromLatin1("foo"); // OK - const QString s4 = "tests/" % QString::fromLatin1("foo"); // OK - - [] { - return "tests/" % QString::fromLatin1("foo"); // Warn - }; - - [] { - return QString(); // OK - }; -} - FAIL Test time = 1.84 sec ---------------------------------------------------------- Test Failed. "auto-unexpected-qstringbuilder" end time: Oct 17 00:44 BST "auto-unexpected-qstringbuilder" time elapsed: 00:00:01 ---------------------------------------------------------- 54/93 Testing: wrong-qevent-cast 54/93 Test: wrong-qevent-cast Command: "/usr/bin/python3" "run_tests.py" "wrong-qevent-cast" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "wrong-qevent-cast" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] wrong-qevent-cast (plugin) [FAIL] wrong-qevent-cast (Failed to build test. Check wrong-qevent-cast/main.cpp.out for details) ------------------- Contents of wrong-qevent-cast/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/wrong-qevent-cast/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/wrong-qevent-cast/main.cpp. ------------------- FAIL Test time = 2.80 sec ---------------------------------------------------------- Test Failed. "wrong-qevent-cast" end time: Oct 17 00:44 BST "wrong-qevent-cast" time elapsed: 00:00:02 ---------------------------------------------------------- 57/93 Testing: child-event-qobject-cast 57/93 Test: child-event-qobject-cast Command: "/usr/bin/python3" "run_tests.py" "child-event-qobject-cast" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "child-event-qobject-cast" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] child-event-qobject-cast (plugin) [FAIL] child-event-qobject-cast (Failed to build test. Check child-event-qobject-cast/main.cpp.out for details) ------------------- Contents of child-event-qobject-cast/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/child-event-qobject-cast/main.cpp:1: In file included from /usr/include/qt5/QtCore/QCoreApplication:1: In file included from /usr/include/qt5/QtCore/qcoreapplication.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/child-event-qobject-cast/main.cpp. ------------------- FAIL Test time = 2.39 sec ---------------------------------------------------------- Test Failed. "child-event-qobject-cast" end time: Oct 17 00:44 BST "child-event-qobject-cast" time elapsed: 00:00:02 ---------------------------------------------------------- 53/93 Testing: writing-to-temporary 53/93 Test: writing-to-temporary Command: "/usr/bin/python3" "run_tests.py" "writing-to-temporary" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "writing-to-temporary" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] writing-to-temporary/widen-criteria.cpp (plugin) [OK] writing-to-temporary/widen-criteria.cpp (standalone) [OK] writing-to-temporary/main.cpp (plugin) [FAIL] writing-to-temporary (Failed to build test. Check writing-to-temporary/main.cpp.out for details) ------------------- Contents of writing-to-temporary/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/writing-to-temporary/main.cpp:1: In file included from /usr/include/qt5/QtCore/QSize:1: In file included from /usr/include/qt5/QtCore/qsize.h:43: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/writing-to-temporary/main.cpp. ------------------- FAIL Test time = 3.51 sec ---------------------------------------------------------- Test Failed. "writing-to-temporary" end time: Oct 17 00:44 BST "writing-to-temporary" time elapsed: 00:00:03 ---------------------------------------------------------- 61/93 Testing: foreach 61/93 Test: foreach Command: "/usr/bin/python3" "run_tests.py" "foreach" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "foreach" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- SUCCESS Test time = 0.80 sec ---------------------------------------------------------- Test Passed. "foreach" end time: Oct 17 00:44 BST "foreach" time elapsed: 00:00:00 ---------------------------------------------------------- 59/93 Testing: const-signal-or-slot 59/93 Test: const-signal-or-slot Command: "/usr/bin/python3" "run_tests.py" "const-signal-or-slot" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "const-signal-or-slot" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] const-signal-or-slot (plugin) [FAIL] const-signal-or-slot (Failed to build test. Check const-signal-or-slot/main.cpp.out for details) ------------------- Contents of const-signal-or-slot/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/const-signal-or-slot/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/const-signal-or-slot/main.cpp. ------------------- FAIL Test time = 2.64 sec ---------------------------------------------------------- Test Failed. "const-signal-or-slot" end time: Oct 17 00:44 BST "const-signal-or-slot" time elapsed: 00:00:02 ---------------------------------------------------------- 60/93 Testing: detaching-temporary 60/93 Test: detaching-temporary Command: "/usr/bin/python3" "run_tests.py" "detaching-temporary" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "detaching-temporary" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] detaching-temporary (plugin) [FAIL] detaching-temporary (Failed to build test. Check detaching-temporary/main.cpp.out for details) ------------------- Contents of detaching-temporary/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/detaching-temporary/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/detaching-temporary/main.cpp. ------------------- FAIL Test time = 2.91 sec ---------------------------------------------------------- Test Failed. "detaching-temporary" end time: Oct 17 00:44 BST "detaching-temporary" time elapsed: 00:00:02 ---------------------------------------------------------- 58/93 Testing: connect-3arg-lambda 58/93 Test: connect-3arg-lambda Command: "/usr/bin/python3" "run_tests.py" "connect-3arg-lambda" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "connect-3arg-lambda" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] connect-3arg-lambda/main.cpp (plugin) [OK] connect-3arg-lambda/main.cpp (plugin) [FAIL] connect-3arg-lambda (Failed to build test. Check connect-3arg-lambda/main.cpp.out for details) ------------------- Contents of connect-3arg-lambda/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-3arg-lambda/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-3arg-lambda/main.cpp. ------------------- [FAIL] connect-3arg-lambda (Failed to build test. Check connect-3arg-lambda/main.cpp.out for details) ------------------- Contents of connect-3arg-lambda/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-3arg-lambda/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/connect-3arg-lambda/main.cpp. ------------------- FAIL Test time = 3.86 sec ---------------------------------------------------------- Test Failed. "connect-3arg-lambda" end time: Oct 17 00:44 BST "connect-3arg-lambda" time elapsed: 00:00:03 ---------------------------------------------------------- 62/93 Testing: incorrect-emit 62/93 Test: incorrect-emit Command: "/usr/bin/python3" "run_tests.py" "incorrect-emit" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "incorrect-emit" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] incorrect-emit/bug437092.cpp (plugin) [OK] incorrect-emit/bug406798.cpp (plugin) [OK] incorrect-emit/bug377140.cpp (plugin) [OK] incorrect-emit/bug377134.cpp (plugin) [OK] incorrect-emit/main.cpp (plugin) [FAIL] incorrect-emit (Failed to build test. Check incorrect-emit/bug406798.cpp.out for details) ------------------- Contents of incorrect-emit/bug406798.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug406798.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug406798.cpp. ------------------- [FAIL] incorrect-emit (Failed to build test. Check incorrect-emit/bug437092.cpp.out for details) ------------------- Contents of incorrect-emit/bug437092.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug437092.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug437092.cpp. ------------------- [FAIL] incorrect-emit (Failed to build test. Check incorrect-emit/bug377140.cpp.out for details) ------------------- Contents of incorrect-emit/bug377140.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug377140.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug377140.cpp. ------------------- [FAIL] incorrect-emit (Failed to build test. Check incorrect-emit/main.cpp.out for details) ------------------- Contents of incorrect-emit/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/main.cpp. ------------------- [FAIL] incorrect-emit (Failed to build test. Check incorrect-emit/bug377134.cpp.out for details) ------------------- Contents of incorrect-emit/bug377134.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug377134.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/incorrect-emit/bug377134.cpp. ------------------- FAIL Test time = 3.08 sec ---------------------------------------------------------- Test Failed. "incorrect-emit" end time: Oct 17 00:44 BST "incorrect-emit" time elapsed: 00:00:03 ---------------------------------------------------------- 63/93 Testing: inefficient-qlist-soft 63/93 Test: inefficient-qlist-soft Command: "/usr/bin/python3" "run_tests.py" "inefficient-qlist-soft" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "inefficient-qlist-soft" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] inefficient-qlist-soft (plugin) [FAIL] inefficient-qlist-soft (Failed to build test. Check inefficient-qlist-soft/main.cpp.out for details) ------------------- Contents of inefficient-qlist-soft/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/inefficient-qlist-soft/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/inefficient-qlist-soft/main.cpp. ------------------- FAIL Test time = 2.81 sec ---------------------------------------------------------- Test Failed. "inefficient-qlist-soft" end time: Oct 17 00:44 BST "inefficient-qlist-soft" time elapsed: 00:00:02 ---------------------------------------------------------- 65/93 Testing: non-pod-global-static 65/93 Test: non-pod-global-static Command: "/usr/bin/python3" "run_tests.py" "non-pod-global-static" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "non-pod-global-static" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] non-pod-global-static (plugin) [FAIL] non-pod-global-static (Failed to build test. Check non-pod-global-static/foo.cpp.out for details) ------------------- Contents of non-pod-global-static/foo.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/non-pod-global-static/foo.cpp:1: In file included from /usr/include/qt5/QtCore/QCoreApplication:1: In file included from /usr/include/qt5/QtCore/qcoreapplication.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/non-pod-global-static/foo.cpp. ------------------- FAIL Test time = 2.66 sec ---------------------------------------------------------- Test Failed. "non-pod-global-static" end time: Oct 17 00:44 BST "non-pod-global-static" time elapsed: 00:00:02 ---------------------------------------------------------- 64/93 Testing: install-event-filter 64/93 Test: install-event-filter Command: "/usr/bin/python3" "run_tests.py" "install-event-filter" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "install-event-filter" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] install-event-filter (plugin) [FAIL] install-event-filter (Failed to build test. Check install-event-filter/main.cpp.out for details) ------------------- Contents of install-event-filter/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/install-event-filter/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/install-event-filter/main.cpp. ------------------- FAIL Test time = 2.76 sec ---------------------------------------------------------- Test Failed. "install-event-filter" end time: Oct 17 00:44 BST "install-event-filter" time elapsed: 00:00:02 ---------------------------------------------------------- 66/93 Testing: overridden-signal 66/93 Test: overridden-signal Command: "/usr/bin/python3" "run_tests.py" "overridden-signal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "overridden-signal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] overridden-signal (plugin) [FAIL] overridden-signal (Failed to build test. Check overridden-signal/main.cpp.out for details) ------------------- Contents of overridden-signal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/overridden-signal/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/overridden-signal/main.cpp. ------------------- FAIL Test time = 2.71 sec ---------------------------------------------------------- Test Failed. "overridden-signal" end time: Oct 17 00:44 BST "overridden-signal" time elapsed: 00:00:02 ---------------------------------------------------------- 67/93 Testing: post-event 67/93 Test: post-event Command: "/usr/bin/python3" "run_tests.py" "post-event" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "post-event" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] post-event (plugin) [FAIL] post-event (Failed to build test. Check post-event/main.cpp.out for details) ------------------- Contents of post-event/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/post-event/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/post-event/main.cpp. ------------------- FAIL Test time = 2.48 sec ---------------------------------------------------------- Test Failed. "post-event" end time: Oct 17 00:44 BST "post-event" time elapsed: 00:00:02 ---------------------------------------------------------- 70/93 Testing: qlatin1string-non-ascii 70/93 Test: qlatin1string-non-ascii Command: "/usr/bin/python3" "run_tests.py" "qlatin1string-non-ascii" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qlatin1string-non-ascii" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qlatin1string-non-ascii (plugin) [FAIL] qlatin1string-non-ascii (Failed to build test. Check qlatin1string-non-ascii/main.cpp.out for details) ------------------- Contents of qlatin1string-non-ascii/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qlatin1string-non-ascii/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qlatin1string-non-ascii/main.cpp. ------------------- FAIL Test time = 1.80 sec ---------------------------------------------------------- Test Failed. "qlatin1string-non-ascii" end time: Oct 17 00:44 BST "qlatin1string-non-ascii" time elapsed: 00:00:01 ---------------------------------------------------------- 68/93 Testing: qdeleteall 68/93 Test: qdeleteall Command: "/usr/bin/python3" "run_tests.py" "qdeleteall" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qdeleteall" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qdeleteall (plugin) [FAIL] qdeleteall (Failed to build test. Check qdeleteall/main.cpp.out for details) ------------------- Contents of qdeleteall/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qdeleteall/main.cpp:3: In file included from /usr/include/qt5/QtCore/QHash:1: In file included from /usr/include/qt5/QtCore/qhash.h:44: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qdeleteall/main.cpp. ------------------- FAIL Test time = 2.41 sec ---------------------------------------------------------- Test Failed. "qdeleteall" end time: Oct 17 00:44 BST "qdeleteall" time elapsed: 00:00:02 ---------------------------------------------------------- 69/93 Testing: qhash-namespace 69/93 Test: qhash-namespace Command: "/usr/bin/python3" "run_tests.py" "qhash-namespace" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qhash-namespace" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qhash-namespace/test_typedef.cpp (plugin) [FAIL] qhash-namespace (Failed to build test. Check qhash-namespace/test_typedef.cpp.out for details) ------------------- Contents of qhash-namespace/test_typedef.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-namespace/test_typedef.cpp:1: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-namespace/test_typedef.cpp. ------------------- [OK] qhash-namespace/main.cpp (plugin) [FAIL] qhash-namespace (Failed to build test. Check qhash-namespace/main.cpp.out for details) ------------------- Contents of qhash-namespace/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-namespace/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qhash-namespace/main.cpp. ------------------- FAIL Test time = 1.92 sec ---------------------------------------------------------- Test Failed. "qhash-namespace" end time: Oct 17 00:44 BST "qhash-namespace" time elapsed: 00:00:01 ---------------------------------------------------------- 72/93 Testing: qstring-left 72/93 Test: qstring-left Command: "/usr/bin/python3" "run_tests.py" "qstring-left" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-left" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qstring-left (plugin) [FAIL] qstring-left (Failed to build test. Check qstring-left/main.cpp.out for details) ------------------- Contents of qstring-left/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-left/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-left/main.cpp. ------------------- FAIL Test time = 1.81 sec ---------------------------------------------------------- Test Failed. "qstring-left" end time: Oct 17 00:44 BST "qstring-left" time elapsed: 00:00:01 ---------------------------------------------------------- 71/93 Testing: qproperty-without-notify 71/93 Test: qproperty-without-notify Command: "/usr/bin/python3" "run_tests.py" "qproperty-without-notify" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qproperty-without-notify" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] qproperty-without-notify (plugin) [FAIL] qproperty-without-notify (Failed to build test. Check qproperty-without-notify/main.cpp.out for details) ------------------- Contents of qproperty-without-notify/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qproperty-without-notify/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qproperty-without-notify/main.cpp. ------------------- FAIL Test time = 2.40 sec ---------------------------------------------------------- Test Failed. "qproperty-without-notify" end time: Oct 17 00:45 BST "qproperty-without-notify" time elapsed: 00:00:02 ---------------------------------------------------------- 73/93 Testing: range-loop-detach 73/93 Test: range-loop-detach Command: "/usr/bin/python3" "run_tests.py" "range-loop-detach" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "range-loop-detach" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] range-loop-detach/bug370609.cpp (plugin) [OK] range-loop-detach/main.cpp (plugin) [FAIL] range-loop-detach (Failed to build test. Check range-loop-detach/bug370609.cpp.out for details) ------------------- Contents of range-loop-detach/bug370609.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-detach/bug370609.cpp:3: In file included from /usr/include/qt5/QtCore/QVector:1: In file included from /usr/include/qt5/QtCore/qvector.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-detach/bug370609.cpp. ------------------- [FAIL] range-loop-detach (Failed to build test. Check range-loop-detach/main.cpp.out for details) ------------------- Contents of range-loop-detach/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-detach/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-detach/main.cpp. ------------------- [FAIL] range-loop-detach/main.cpp.clazy.yaml is missing!! [FAIL] range-loop-detach/bug370609.cpp.clazy.yaml is missing!! [FAIL] range-loop-detach/main.cpp.clazy-standalone.yaml is missing!! [FAIL] range-loop-detach/bug370609.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'range-loop-detach/main.cpp.clazy.fixed' [FAIL] range-loop-detach/main.cpp (plugin, fixits) --- range-loop-detach/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ range-loop-detach/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,121 +0,0 @@ -#include -#include -#include -#include - -void receivingList(QList); -void receivingMap(QMultiMap); - -using namespace std; - -QList getQtList() -{ - return {}; // dummy, not important -} - -const QList getConstQtList() -{ - return {}; // dummy, not important -} - -const QList & getConstRefQtList() -{ - static QList foo; - return foo; -} - -void testQtContainer() -{ - QList qt_container; - receivingList(qt_container); - for (int i : qAsConst(qt_container)) { // Warning - } - - const QList const_qt_container; - for (int i : const_qt_container) { // OK - } - - for (int i : getQtList()) { // Warning - } - - for (int i : qAsConst(qt_container)) { } // Warning - for (const int &i : qAsConst(qt_container)) { } // Warning - for (int &i : qt_container) { } // OK - - - - - for (int i : getConstQtList()) { // OK - } - - for (int i : getConstRefQtList()) { // OK - } - - vector stl_container; - for (int i : stl_container) { // OK - } -} - -class A { -public: - void foo() - { - for (int a : m_stlVec) {} // OK - } - - std::vector m_stlVec; -}; - -void testQMultiMapDetach() -{ - QMultiMap m; - receivingMap(m); - for (int i : qAsConst(m)) { - } -} - -void testBug367485() -{ - QList list; - for (auto a : list) {} // OK - - QList list2; - receivingList(list2); - for (auto a : qAsConst(list2)) {} // Warning - - QList list3; - for (auto a : list3) {} // OK - receivingList(list3); - - QList list4; - foreach (auto a, list4) {} // OK - receivingList(list4); -} - -struct SomeStruct -{ - QStringList m_list; - void test_add_qasconst_fixits() - { - for (const auto &s : qAsConst(m_list)) {} // Warn - } - - QStringList getList(); -}; - - -void test_add_qasconst_fixits() -{ - SomeStruct f; - for (const auto &s : qAsConst(f.m_list)) {} // Warn - - SomeStruct *f2; - for (const auto &s : qAsConst(f2->m_list)) {} // Warn - - QStringList locallist = f.getList(); - for (const auto &s : qAsConst(locallist)) {} // Warn - - for (const auto &s : getQtList()) {} // Warn - - for (const auto &s : f.getList()) {} // Warn -} Error comparing files:[Errno 2] No such file or directory: 'range-loop-detach/bug370609.cpp.clazy.fixed' [FAIL] range-loop-detach/bug370609.cpp (plugin, fixits) --- range-loop-detach/bug370609.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ range-loop-detach/bug370609.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -// bug 370609, Simply tests if clazy crashes - -#include - -template -struct Example -{ - Example() - { - for (auto sample : qAsConst(m_sampleCache)) { } - } - QVector m_sampleCache; -}; - -void CreateExample() -{ - new Example(); -} FAIL Test time = 2.45 sec ---------------------------------------------------------- Test Failed. "range-loop-detach" end time: Oct 17 00:45 BST "range-loop-detach" time elapsed: 00:00:02 ---------------------------------------------------------- 77/93 Testing: skipped-base-method 77/93 Test: skipped-base-method Command: "/usr/bin/python3" "run_tests.py" "skipped-base-method" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "skipped-base-method" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] skipped-base-method (plugin) [FAIL] skipped-base-method (Failed to build test. Check skipped-base-method/main.cpp.out for details) ------------------- Contents of skipped-base-method/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/skipped-base-method/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/skipped-base-method/main.cpp. ------------------- FAIL Test time = 1.78 sec ---------------------------------------------------------- Test Failed. "skipped-base-method" end time: Oct 17 00:45 BST "skipped-base-method" time elapsed: 00:00:01 ---------------------------------------------------------- 75/93 Testing: returning-data-from-temporary 75/93 Test: returning-data-from-temporary Command: "/usr/bin/python3" "run_tests.py" "returning-data-from-temporary" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "returning-data-from-temporary" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [XFAIL] returning-data-from-temporary (plugin) --- returning-data-from-temporary/main.cpp.expected 2021-07-20 15:54:58.000000000 +0100 +++ returning-data-from-temporary/main.cpp.result 2021-10-17 00:45:01.459317064 +0100 @@ -18,6 +18,5 @@ returning-data-from-temporary/main.cpp:131:22: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] returning-data-from-temporary/main.cpp:132:22: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] returning-data-from-temporary/main.cpp:133:23: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] -returning-data-from-temporary/main.cpp:134:23: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] returning-data-from-temporary/main.cpp:142:12: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] returning-data-from-temporary/main.cpp:143:12: warning: Returning data of temporary QByteArray [-Wclazy-returning-data-from-temporary] [FAIL] returning-data-from-temporary (Failed to build test. Check returning-data-from-temporary/main.cpp.out for details) ------------------- Contents of returning-data-from-temporary/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/returning-data-from-temporary/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/returning-data-from-temporary/main.cpp. ------------------- FAIL Test time = 2.10 sec ---------------------------------------------------------- Test Failed. "returning-data-from-temporary" end time: Oct 17 00:45 BST "returning-data-from-temporary" time elapsed: 00:00:02 ---------------------------------------------------------- 74/93 Testing: range-loop-reference 74/93 Test: range-loop-reference Command: "/usr/bin/python3" "run_tests.py" "range-loop-reference" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "range-loop-reference" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] range-loop-reference (plugin) [FAIL] range-loop-reference (Failed to build test. Check range-loop-reference/main.cpp.out for details) ------------------- Contents of range-loop-reference/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-reference/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/range-loop-reference/main.cpp. ------------------- [FAIL] range-loop-reference/main.cpp.clazy.yaml is missing!! [FAIL] range-loop-reference/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'range-loop-reference/main.cpp.clazy.fixed' [FAIL] range-loop-reference (plugin, fixits) --- range-loop-reference/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ range-loop-reference/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,107 +0,0 @@ -#include -#include -#include -#include - -struct Trivial -{ - int a; -}; - -struct BigTrivial -{ - int a, b, c, d, e; - void constFoo() const {} - void nonConstFoo() {} -}; - -struct SmallNonTrivial -{ - int a; - ~SmallNonTrivial() {} -}; - -extern void nop(); -extern void nop2(BigTrivial &); // non-const-ref -extern void nop3(const BigTrivial &); // const-ref -extern void nop4(BigTrivial *); // pointer - -void test_missing_ref() -{ - const QList trivials; - const QList bigTrivials; - const QList smallNonTrivials; - - // Test #2: No warning - for (Trivial t : trivials) { - nop(); - } - - // Test #3: No warning - for (BigTrivial t : bigTrivials) { - nop(); - } - - // Test #4: Warning - for (const SmallNonTrivial &t : smallNonTrivials) { - nop(); - } - - // Test #5: No Warning - for (const BigTrivial t : bigTrivials) { - t.constFoo(); - } - - // Test #6: No warning - for (BigTrivial t : bigTrivials) { - t.nonConstFoo(); - } - - // Test #7: No warning - for (BigTrivial t : bigTrivials) { - t = BigTrivial(); - } - - // Test #8: No warning - for (BigTrivial t : bigTrivials) { - nop2(t); - } - - // Test #9: No Warning - for (BigTrivial t : bigTrivials) { - nop3(t); - } - - // Test #9: No warning - for (BigTrivial t : bigTrivials) { - nop4(&t); - } - - // Test #10: No warning (bug #362587) - QSequentialIterable si = QVariant().value(); - for (const auto &s : si) {} -} - -void test_add_ref_fixits() -{ - QStringList strlist; - for (const QString &s : strlist) {} // should add & - for (const QString &s : strlist) {} // should add const-& - - for (QString s : strlist) { // shouldn't warn - s = s.toLower(); - } - - for (QString s : strlist) { // shouldn't warn - s.clear(); - } -} - -void test_json_array() -{ - QJsonArray array; - const QJsonArray const_array; - for (const auto a : array) {} // OK - for (const QJsonValue &a : const_array) {} // Warn - for (const QJsonValue &a : const_array) {} // OK -} FAIL Test time = 2.97 sec ---------------------------------------------------------- Test Failed. "range-loop-reference" end time: Oct 17 00:45 BST "range-loop-reference" time elapsed: 00:00:02 ---------------------------------------------------------- 80/93 Testing: copyable-polymorphic 80/93 Test: copyable-polymorphic Command: "/usr/bin/python3" "run_tests.py" "copyable-polymorphic" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "copyable-polymorphic" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] copyable-polymorphic/fixits.cpp (plugin) [OK] copyable-polymorphic/main.cpp (plugin) [OK] copyable-polymorphic/fixits.cpp (standalone) [OK] copyable-polymorphic/main.cpp (standalone) [OK] copyable-polymorphic/fixits.cpp (plugin, fixits) [OK] copyable-polymorphic/fixits.cpp (standalone, fixits) SUCCESS Test time = 0.89 sec ---------------------------------------------------------- Test Passed. "copyable-polymorphic" end time: Oct 17 00:45 BST "copyable-polymorphic" time elapsed: 00:00:00 ---------------------------------------------------------- 78/93 Testing: virtual-signal 78/93 Test: virtual-signal Command: "/usr/bin/python3" "run_tests.py" "virtual-signal" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "virtual-signal" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] virtual-signal/main.cpp (plugin) [OK] virtual-signal/non-qobject-base.cpp (plugin) [FAIL] virtual-signal (Failed to build test. Check virtual-signal/main.cpp.out for details) ------------------- Contents of virtual-signal/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-signal/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-signal/main.cpp. ------------------- [FAIL] virtual-signal (Failed to build test. Check virtual-signal/non-qobject-base.cpp.out for details) ------------------- Contents of virtual-signal/non-qobject-base.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-signal/non-qobject-base.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-signal/non-qobject-base.cpp. ------------------- FAIL Test time = 2.53 sec ---------------------------------------------------------- Test Failed. "virtual-signal" end time: Oct 17 00:45 BST "virtual-signal" time elapsed: 00:00:02 ---------------------------------------------------------- 76/93 Testing: rule-of-two-soft 76/93 Test: rule-of-two-soft Command: "/usr/bin/python3" "run_tests.py" "rule-of-two-soft" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "rule-of-two-soft" start time: Oct 17 00:44 BST Output: ---------------------------------------------------------- [OK] rule-of-two-soft/bug375537.cpp (plugin) [FAIL] rule-of-two-soft (Failed to build test. Check rule-of-two-soft/bug375537.cpp.out for details) ------------------- Contents of rule-of-two-soft/bug375537.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-two-soft/bug375537.cpp:1: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/thread:43: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/std_thread.h:38: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/exception:147: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/exception_ptr.h:38: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/cxxabi_init_exception.h:38:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-two-soft/bug375537.cpp. ------------------- [OK] rule-of-two-soft/main.cpp (plugin) [FAIL] rule-of-two-soft (Failed to build test. Check rule-of-two-soft/main.cpp.out for details) ------------------- Contents of rule-of-two-soft/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-two-soft/main.cpp:1: In file included from /usr/include/qt5/QtCore/QModelIndex:1: In file included from /usr/include/qt5/QtCore/qabstractitemmodel.h:43: In file included from /usr/include/qt5/QtCore/qvariant.h:43: In file included from /usr/include/qt5/QtCore/qatomic.h:41: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-two-soft/main.cpp. ------------------- FAIL Test time = 2.76 sec ---------------------------------------------------------- Test Failed. "rule-of-two-soft" end time: Oct 17 00:45 BST "rule-of-two-soft" time elapsed: 00:00:02 ---------------------------------------------------------- 79/93 Testing: base-class-event 79/93 Test: base-class-event Command: "/usr/bin/python3" "run_tests.py" "base-class-event" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "base-class-event" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] base-class-event (plugin) [FAIL] base-class-event (Failed to build test. Check base-class-event/main.cpp.out for details) ------------------- Contents of base-class-event/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/base-class-event/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/base-class-event/main.cpp. ------------------- FAIL Test time = 2.82 sec ---------------------------------------------------------- Test Failed. "base-class-event" end time: Oct 17 00:45 BST "base-class-event" time elapsed: 00:00:02 ---------------------------------------------------------- 84/93 Testing: global-const-char-pointer 84/93 Test: global-const-char-pointer Command: "/usr/bin/python3" "run_tests.py" "global-const-char-pointer" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "global-const-char-pointer" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] global-const-char-pointer (plugin) [OK] global-const-char-pointer (standalone) SUCCESS Test time = 1.06 sec ---------------------------------------------------------- Test Passed. "global-const-char-pointer" end time: Oct 17 00:45 BST "global-const-char-pointer" time elapsed: 00:00:01 ---------------------------------------------------------- 81/93 Testing: ctor-missing-parent-argument 81/93 Test: ctor-missing-parent-argument Command: "/usr/bin/python3" "run_tests.py" "ctor-missing-parent-argument" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "ctor-missing-parent-argument" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] ctor-missing-parent-argument/bug400942.cpp (plugin) [OK] ctor-missing-parent-argument/main.cpp (plugin) [FAIL] ctor-missing-parent-argument (Failed to build test. Check ctor-missing-parent-argument/bug400942.cpp.out for details) ------------------- Contents of ctor-missing-parent-argument/bug400942.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ctor-missing-parent-argument/bug400942.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ctor-missing-parent-argument/bug400942.cpp. ------------------- [FAIL] ctor-missing-parent-argument (Failed to build test. Check ctor-missing-parent-argument/main.cpp.out for details) ------------------- Contents of ctor-missing-parent-argument/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ctor-missing-parent-argument/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ctor-missing-parent-argument/main.cpp. ------------------- FAIL Test time = 3.95 sec ---------------------------------------------------------- Test Failed. "ctor-missing-parent-argument" end time: Oct 17 00:45 BST "ctor-missing-parent-argument" time elapsed: 00:00:03 ---------------------------------------------------------- 82/93 Testing: function-args-by-ref 82/93 Test: function-args-by-ref Command: "/usr/bin/python3" "run_tests.py" "function-args-by-ref" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "function-args-by-ref" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] function-args-by-ref/lambdas.cpp (plugin) [OK] function-args-by-ref/warn-for-overridden-methods.cpp (plugin) [OK] function-args-by-ref/lambdas.cpp (standalone) [OK] function-args-by-ref/warn-for-overridden-methods.cpp (standalone) [OK] function-args-by-ref/more_fixits.cpp (plugin) [FAIL] function-args-by-ref (Failed to build test. Check function-args-by-ref/more_fixits.cpp.out for details) ------------------- Contents of function-args-by-ref/more_fixits.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/more_fixits.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/more_fixits.cpp. ------------------- [OK] function-args-by-ref/sharedptrs.cpp (plugin) [OK] function-args-by-ref/main.cpp (plugin) [FAIL] function-args-by-ref (Failed to build test. Check function-args-by-ref/sharedptrs.cpp.out for details) ------------------- Contents of function-args-by-ref/sharedptrs.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/sharedptrs.cpp:1: In file included from /usr/include/qt5/QtCore/QSharedPointer:1: In file included from /usr/include/qt5/QtCore/qsharedpointer.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/sharedptrs.cpp. ------------------- [FAIL] function-args-by-ref (Failed to build test. Check function-args-by-ref/main.cpp.out for details) ------------------- Contents of function-args-by-ref/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/main.cpp:1: In file included from /usr/include/qt5/QtCore/QDebug:1: In file included from /usr/include/qt5/QtCore/qdebug.h:44: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-ref/main.cpp. ------------------- [FAIL] function-args-by-ref/main.cpp.clazy.yaml is missing!! [FAIL] function-args-by-ref/more_fixits.cpp.clazy.yaml is missing!! [FAIL] function-args-by-ref/main.cpp.clazy-standalone.yaml is missing!! [FAIL] function-args-by-ref/more_fixits.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'function-args-by-ref/main.cpp.clazy.fixed' [FAIL] function-args-by-ref/main.cpp (plugin, fixits) --- function-args-by-ref/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ function-args-by-ref/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,247 +0,0 @@ -#include -#include - - - -struct Trivial { - int a; -}; - -struct NonTrivial { - NonTrivial() {} - NonTrivial(const NonTrivial &) {} - void constFunction() const {}; - void nonConstFunction() {}; - int a; -}; - -extern void by_pointer(NonTrivial*); -extern void by_const_pointer(const NonTrivial*); -extern void by_ref(NonTrivial&); -extern void by_constRef(const NonTrivial&); - -int foo1(const Trivial nt) // Test #1: No warning -{ - return nt.a; -} - -int foo2(const NonTrivial &nt) // Test #2: Warning -{ - nt.constFunction(); - return nt.a; -} - -int foo3(const NonTrivial &nt) // Test #3: Warning -{ - return nt.a; -} - -int foo4(const NonTrivial &nt) // Test #4: Warning -{ - return nt.a; -} - -int foo5(NonTrivial nt) // Test #5: No warning -{ - by_pointer(&nt); - return nt.a; -} - - -int foo6(NonTrivial nt) // Test #6: No warning -{ - by_ref(nt); - return nt.a; -} - -int foo7(NonTrivial nt) // Test #7: No warning -{ - nt.nonConstFunction(); - return nt.a; -} - -int foo8(const NonTrivial &nt) // Test #8: Warning -{ - nt.constFunction(); - return nt.a; -} - -int foo9(const NonTrivial &nt) // Test #9: Warning -{ - by_constRef(nt); - return nt.a; -} - -int foo10(const NonTrivial &nt) // Test #10: Warning -{ - by_const_pointer(&nt); - return nt.a; -} - -int foo11(QColor) // Test #11: No warning -{ - return 1; -} - -int foo12(NonTrivial nt) // Test #12: No warning -{ - nt = NonTrivial(); - return 1; -} - -void func(QString text) -{ - QTextStream a(&text); // OK, by-pointer to a CTOR -} - -struct StringConstPtr -{ - StringConstPtr(const QString *s) {} -}; - -void func2(const QString &text) -{ - StringConstPtr s(&text); // Warning, it's a const ptr -} - -enum Option { - FooOption, - FooOption2 -}; - - -Q_DECLARE_FLAGS(Options, Option) -Q_DECLARE_OPERATORS_FOR_FLAGS(Options) - -struct NoUserCtorsButNotTrivial -{ - NonTrivial t; -}; - -void testNoUserCtorsButNotTrivial(const NoUserCtorsButNotTrivial&) -{ - -} - -struct TrivialWithDefaultCopyCtorAndDtor -{ - TrivialWithDefaultCopyCtorAndDtor(const TrivialWithDefaultCopyCtorAndDtor &) = default; - ~TrivialWithDefaultCopyCtorAndDtor() = default; - int m; -}; - -void testTrivialWithDefaultCopyCtorAndDtor(TrivialWithDefaultCopyCtorAndDtor) -{ - -} - -struct DefaultButNotTrivialCopyable -{ - DefaultButNotTrivialCopyable(const DefaultButNotTrivialCopyable & ) = default; - ~DefaultButNotTrivialCopyable() = default; - NonTrivial t; -}; - -void testDefaultButNotTrivialCopyable(const DefaultButNotTrivialCopyable&) -{ - -} - -void shouldBeByValue(const Trivial &nt) -{ - -} - - -void isOK(const NonTrivial &&) -{ -} - -void foo(const Trivial &t = Trivial()); -void foo1(const Trivial & = Trivial()); -void foo2(const Trivial &t); -void foo3(const Trivial&); - -void foo4(const Trivial &t); -void foo4(const Trivial &t) -{ -} - -void foo5(const Trivial &t) -{ -} - -void foo6(const Trivial &t = {}) -{ -} - - -struct Base // Test that fixits fix both Base and Derived -{ - void foo(const Trivial &); -}; - -void Base::foo(const Trivial &) -{ -} - -struct Derived : public Base -{ - void foo(const Trivial &); -}; - -void Derived::foo(const Trivial &) -{ -} - - - - - - -struct DeletedCtor // bug #360112 -{ - Q_DISABLE_COPY(DeletedCtor) -}; - -struct CopyCtor // bug #360112 -{ - CopyCtor(const CopyCtor &) {} -}; - -struct Ctors -{ - Ctors (const NonTrivial&) {} -}; - - -struct Ctors2 -{ - Ctors2(NonTrivial n) : m(std::move(n)), i(0) {} // Ok - NonTrivial m; - int i; -}; - -struct Ctors3 -{ - Ctors3(const NonTrivial &n) : m(n), i(0) {} // Warning - NonTrivial m; - int i; -}; - - -// #381812 -class BaseWithVirtuals -{ -public: - virtual void virtualMethod1(const NonTrivial&) {}; // Warn - virtual void virtualMethod2(const NonTrivial&) {}; // Warn - void nonVirtualMethod(const NonTrivial&) {}; // Warn -}; - -class DerivedWithVirtuals : BaseWithVirtuals { -public: - void virtualMethod1(const NonTrivial&) override {}; // OK - void virtualMethod2(const NonTrivial&) {}; // OK - void nonVirtualMethod(const NonTrivial&) {}; // Warn -}; Error comparing files:[Errno 2] No such file or directory: 'function-args-by-ref/more_fixits.cpp.clazy.fixed' [FAIL] function-args-by-ref/more_fixits.cpp (plugin, fixits) --- function-args-by-ref/more_fixits.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ function-args-by-ref/more_fixits.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -#include - -class Test -{ -public: - void foo(const QString&); - void bar(const QString&) {} -}; - -void Test::foo(const QString&) -{ - -} FAIL Test time = 3.78 sec ---------------------------------------------------------- Test Failed. "function-args-by-ref" end time: Oct 17 00:45 BST "function-args-by-ref" time elapsed: 00:00:03 ---------------------------------------------------------- 83/93 Testing: function-args-by-value 83/93 Test: function-args-by-value Command: "/usr/bin/python3" "run_tests.py" "function-args-by-value" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "function-args-by-value" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] function-args-by-value/bug379342.cpp (plugin) [OK] function-args-by-value/lambdas.cpp (plugin) [OK] function-args-by-value/warn-for-overridden-methods.cpp (plugin) [OK] function-args-by-value/bug379342.cpp (standalone) [OK] function-args-by-value/lambdas.cpp (standalone) [OK] function-args-by-value/warn-for-overridden-methods.cpp (standalone) [OK] function-args-by-value/sharedptrs.cpp (plugin) [OK] function-args-by-value/main.cpp (plugin) [FAIL] function-args-by-value (Failed to build test. Check function-args-by-value/sharedptrs.cpp.out for details) ------------------- Contents of function-args-by-value/sharedptrs.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-value/sharedptrs.cpp:1: In file included from /usr/include/qt5/QtCore/QSharedPointer:1: In file included from /usr/include/qt5/QtCore/qsharedpointer.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-value/sharedptrs.cpp. ------------------- [FAIL] function-args-by-value (Failed to build test. Check function-args-by-value/main.cpp.out for details) ------------------- Contents of function-args-by-value/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-value/main.cpp:1: In file included from /usr/include/qt5/QtCore/QDebug:1: In file included from /usr/include/qt5/QtCore/qdebug.h:44: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/function-args-by-value/main.cpp. ------------------- [FAIL] function-args-by-value/main.cpp.clazy.yaml is missing!! [FAIL] function-args-by-value/main.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'function-args-by-value/main.cpp.clazy.fixed' [FAIL] function-args-by-value/main.cpp (plugin, fixits) --- function-args-by-value/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ function-args-by-value/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,247 +0,0 @@ -#include -#include -#include - - -struct Trivial { - int a; -}; - -struct NonTrivial { - NonTrivial() {} - NonTrivial(const NonTrivial &) {} - void constFunction() const {}; - void nonConstFunction() {}; - int a; -}; - -void by_pointer(NonTrivial*) {} -void by_const_pointer(const NonTrivial*) {} -void by_ref(NonTrivial&) {} -void by_constRef(const NonTrivial&) {} - -int foo1(const Trivial nt) // Test #1: No warning -{ - return nt.a; -} - -int foo2(const NonTrivial nt) // Test #2: Warning -{ - nt.constFunction(); - return nt.a; -} - -int foo3(NonTrivial nt) // Test #3: Warning -{ - return nt.a; -} - -int foo4(NonTrivial nt) // Test #4: Warning -{ - return nt.a; -} - -int foo5(NonTrivial nt) // Test #5: No warning -{ - by_pointer(&nt); - return nt.a; -} - - -int foo6(NonTrivial nt) // Test #6: No warning -{ - by_ref(nt); - return nt.a; -} - -int foo7(NonTrivial nt) // Test #7: No warning -{ - nt.nonConstFunction(); - return nt.a; -} - -int foo8(NonTrivial nt) // Test #8: Warning -{ - nt.constFunction(); - return nt.a; -} - -int foo9(NonTrivial nt) // Test #9: Warning -{ - by_constRef(nt); - return nt.a; -} - -int foo10(NonTrivial nt) // Test #10: Warning -{ - by_const_pointer(&nt); - return nt.a; -} - -int foo11(QColor) // Test #11: No warning -{ - return 1; -} - -int foo12(NonTrivial nt) // Test #12: No warning -{ - nt = NonTrivial(); - return 1; -} - -void func(QString text) -{ - QTextStream a(&text); // OK, by-pointer to a CTOR -} - -struct StringConstPtr -{ - StringConstPtr(const QString *s) {} -}; - -void func2(QString text) -{ - StringConstPtr s(&text); // Warning, it's a const ptr -} - -enum Option { - FooOption, - FooOption2 -}; - - -Q_DECLARE_FLAGS(Options, Option) -Q_DECLARE_OPERATORS_FOR_FLAGS(Options) - -struct NoUserCtorsButNotTrivial -{ - NonTrivial t; -}; - -void testNoUserCtorsButNotTrivial(NoUserCtorsButNotTrivial) -{ - -} - -struct TrivialWithDefaultCopyCtorAndDtor -{ - TrivialWithDefaultCopyCtorAndDtor(const TrivialWithDefaultCopyCtorAndDtor &) = default; - ~TrivialWithDefaultCopyCtorAndDtor() = default; - int m; -}; - -void testTrivialWithDefaultCopyCtorAndDtor(TrivialWithDefaultCopyCtorAndDtor) -{ - -} - -struct DefaultButNotTrivialCopyable -{ - DefaultButNotTrivialCopyable(const DefaultButNotTrivialCopyable & ) = default; - ~DefaultButNotTrivialCopyable() = default; - NonTrivial t; -}; - -void testDefaultButNotTrivialCopyable(DefaultButNotTrivialCopyable) -{ - -} - -void shouldBeByValue(Trivial nt) -{ - -} - - -void isOK(const NonTrivial &&) -{ -} - -void foo(const Trivial &t = Trivial()); -void foo1(const Trivial & = Trivial()); -void foo2(const Trivial &t); -void foo3(const Trivial&); - -void foo4(Trivial t); -void foo4(Trivial t) -{ -} - -void foo5(Trivial t) -{ -} - -void foo6(Trivial t = {}) -{ -} - - -struct Base // Test that fixits fix both Base and Derived -{ - void foo(Trivial ); -}; - -void Base::foo(Trivial ) -{ -} - -struct Derived : public Base -{ - void foo(Trivial ); -}; - -void Derived::foo(Trivial ) -{ -} - -struct QDBusMessage -{ - void createErrorReply(QString) {} -}; - -struct DeletedCtor // bug #360112 -{ - Q_DISABLE_COPY(DeletedCtor) -}; - -struct CopyCtor // bug #360112 -{ - CopyCtor(const CopyCtor &) {} -}; - -struct Ctors -{ - Ctors (NonTrivial) {} -}; - -void trivialByConstRef(int t) {} // Warn -void trivialByRef(int &t) {} // OK - -// #381812 - -class BaseWithVirtuals -{ -public: - virtual void virtualMethod1(const Trivial &) {}; // Warn - virtual void virtualMethod2(const Trivial &) {}; // Warn - void nonVirtualMethod(Trivial ) {}; // Warn -}; - -class DerivedWithVirtuals : BaseWithVirtuals { -public: - void virtualMethod1(const Trivial &) override {}; // OK - void virtualMethod2(const Trivial &) {}; // OK - void nonVirtualMethod(Trivial ) {}; // Warn -}; - - -// bug #403088 -void func(const std::atomic &a) {} // Ok, since it's not trivially-copyable - -// generalization of bug #403088 -struct DeletedCopyCtor { - DeletedCopyCtor(const DeletedCopyCtor &) = delete; - int v; -}; - -void func(const DeletedCopyCtor &a) {} [OK] function-args-by-value/warn-for-overridden-methods.cpp (plugin, fixits) [OK] function-args-by-value/warn-for-overridden-methods.cpp (standalone, fixits) FAIL Test time = 3.97 sec ---------------------------------------------------------- Test Failed. "function-args-by-value" end time: Oct 17 00:45 BST "function-args-by-value" time elapsed: 00:00:03 ---------------------------------------------------------- 86/93 Testing: missing-qobject-macro 86/93 Test: missing-qobject-macro Command: "/usr/bin/python3" "run_tests.py" "missing-qobject-macro" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "missing-qobject-macro" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] missing-qobject-macro/main.cpp (plugin) [OK] missing-qobject-macro/fixit.cpp (plugin) [OK] missing-qobject-macro/file.hh (plugin) [FAIL] missing-qobject-macro (Failed to build test. Check missing-qobject-macro/main.cpp.out for details) ------------------- Contents of missing-qobject-macro/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/main.cpp. ------------------- [FAIL] missing-qobject-macro (Failed to build test. Check missing-qobject-macro/fixit.cpp.out for details) ------------------- Contents of missing-qobject-macro/fixit.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/fixit.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/fixit.cpp. ------------------- [FAIL] missing-qobject-macro (Failed to build test. Check missing-qobject-macro/file.hh.out for details) ------------------- Contents of missing-qobject-macro/file.hh.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/file.hh:4: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-qobject-macro/file.hh. ------------------- [FAIL] missing-qobject-macro/fixit.cpp.clazy.yaml is missing!! [FAIL] missing-qobject-macro/file.hh.clazy.yaml is missing!! [FAIL] missing-qobject-macro/fixit.cpp.clazy-standalone.yaml is missing!! [FAIL] missing-qobject-macro/file.hh.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'missing-qobject-macro/fixit.cpp.clazy.fixed' [FAIL] missing-qobject-macro/fixit.cpp (plugin, fixits) --- missing-qobject-macro/fixit.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ missing-qobject-macro/fixit.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#include -#include - - - - - - - - -class MissingMacro : public QObject -{ - Q_OBJECT -public: // Warning -}; - -class HasMacro : public QObject -{ - Q_OBJECT -public: -}; - -class Derived1 : public HasMacro -{ - Q_OBJECT -public: // Warning -}; - -class QFile; -class FwdDecl; - -template class DerivedTemplate : public Derived1 -{ // OK, moc doesn't accept Q_OBJECT in template classes - public: -}; - -#include "fixit.moc" Error comparing files:[Errno 2] No such file or directory: 'missing-qobject-macro/file.hh.clazy.fixed' [FAIL] missing-qobject-macro/file.hh (plugin, fixits) --- missing-qobject-macro/file.hh.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ missing-qobject-macro/file.hh.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -#ifndef FILE_H -#define FILE_H - -#include - -class MissingMacro : public QObject -{ - Q_OBJECT -public: // Warning -}; - -#endif // FILE_H FAIL Test time = 3.68 sec ---------------------------------------------------------- Test Failed. "missing-qobject-macro" end time: Oct 17 00:45 BST "missing-qobject-macro" time elapsed: 00:00:03 ---------------------------------------------------------- 87/93 Testing: missing-typeinfo 87/93 Test: missing-typeinfo Command: "/usr/bin/python3" "run_tests.py" "missing-typeinfo" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "missing-typeinfo" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] missing-typeinfo (plugin) [FAIL] missing-typeinfo (Failed to build test. Check missing-typeinfo/main.cpp.out for details) ------------------- Contents of missing-typeinfo/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-typeinfo/main.cpp:1: In file included from /usr/include/qt5/QtCore/QList:1: In file included from /usr/include/qt5/QtCore/qlist.h:43: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/missing-typeinfo/main.cpp. ------------------- FAIL Test time = 3.19 sec ---------------------------------------------------------- Test Failed. "missing-typeinfo" end time: Oct 17 00:45 BST "missing-typeinfo" time elapsed: 00:00:03 ---------------------------------------------------------- 85/93 Testing: implicit-casts 85/93 Test: implicit-casts Command: "/usr/bin/python3" "run_tests.py" "implicit-casts" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "implicit-casts" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] implicit-casts/bool2int.cpp (plugin) [OK] implicit-casts/main.cpp (plugin) [FAIL] implicit-casts (Failed to build test. Check implicit-casts/bool2int.cpp.out for details) ------------------- Contents of implicit-casts/bool2int.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/implicit-casts/bool2int.cpp:1: In file included from /usr/include/qt5/QtCore/QDebug:1: In file included from /usr/include/qt5/QtCore/qdebug.h:44: In file included from /usr/include/qt5/QtCore/qalgorithms.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/implicit-casts/bool2int.cpp. ------------------- [FAIL] implicit-casts (Failed to build test. Check implicit-casts/main.cpp.out for details) ------------------- Contents of implicit-casts/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/implicit-casts/main.cpp:1: In file included from /usr/include/qt5/QtCore/qmetatype.h:45: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/implicit-casts/main.cpp. ------------------- FAIL Test time = 4.42 sec ---------------------------------------------------------- Test Failed. "implicit-casts" end time: Oct 17 00:45 BST "implicit-casts" time elapsed: 00:00:04 ---------------------------------------------------------- 90/93 Testing: returning-void-expression 90/93 Test: returning-void-expression Command: "/usr/bin/python3" "run_tests.py" "returning-void-expression" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "returning-void-expression" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] returning-void-expression (plugin) [OK] returning-void-expression (standalone) SUCCESS Test time = 1.28 sec ---------------------------------------------------------- Test Passed. "returning-void-expression" end time: Oct 17 00:45 BST "returning-void-expression" time elapsed: 00:00:01 ---------------------------------------------------------- 92/93 Testing: static-pmf 92/93 Test: static-pmf Command: "/usr/bin/python3" "run_tests.py" "static-pmf" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "static-pmf" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] static-pmf (plugin) [FAIL] static-pmf (Failed to build test. Check static-pmf/main.cpp.out for details) ------------------- Contents of static-pmf/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/static-pmf/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/static-pmf/main.cpp. ------------------- FAIL Test time = 3.05 sec ---------------------------------------------------------- Test Failed. "static-pmf" end time: Oct 17 00:45 BST "static-pmf" time elapsed: 00:00:03 ---------------------------------------------------------- 93/93 Testing: virtual-call-ctor 93/93 Test: virtual-call-ctor Command: "/usr/bin/python3" "run_tests.py" "virtual-call-ctor" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "virtual-call-ctor" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] virtual-call-ctor (plugin) [FAIL] virtual-call-ctor (Failed to build test. Check virtual-call-ctor/main.cpp.out for details) ------------------- Contents of virtual-call-ctor/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-call-ctor/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/virtual-call-ctor/main.cpp. ------------------- FAIL Test time = 2.88 sec ---------------------------------------------------------- Test Failed. "virtual-call-ctor" end time: Oct 17 00:45 BST "virtual-call-ctor" time elapsed: 00:00:02 ---------------------------------------------------------- 91/93 Testing: rule-of-three 91/93 Test: rule-of-three Command: "/usr/bin/python3" "run_tests.py" "rule-of-three" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "rule-of-three" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] rule-of-three/bug403193.cpp (plugin) [OK] rule-of-three/bug388677.cpp (plugin) [OK] rule-of-three/bug388682.cpp (plugin) [OK] rule-of-three/bug403193.cpp (standalone) [FAIL] rule-of-three (Failed to build test. Check rule-of-three/bug388677.cpp.out for details) ------------------- Contents of rule-of-three/bug388677.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/bug388677.cpp:1: /usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/bug388677.cpp. ------------------- [FAIL] rule-of-three (Failed to build test. Check rule-of-three/bug388682.cpp.out for details) ------------------- Contents of rule-of-three/bug388682.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/bug388682.cpp:1: /usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/bug388682.cpp. ------------------- [OK] rule-of-three/main.cpp (plugin) [FAIL] rule-of-three (Failed to build test. Check rule-of-three/main.cpp.out for details) ------------------- Contents of rule-of-three/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/main.cpp:1: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/main.h:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/rule-of-three/main.cpp. ------------------- FAIL Test time = 3.28 sec ---------------------------------------------------------- Test Failed. "rule-of-three" end time: Oct 17 00:45 BST "rule-of-three" time elapsed: 00:00:03 ---------------------------------------------------------- 89/93 Testing: qstring-allocations 89/93 Test: qstring-allocations Command: "/usr/bin/python3" "run_tests.py" "qstring-allocations" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "qstring-allocations" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] qstring-allocations/364092.cpp (plugin) [OK] qstring-allocations/no-msvc-compat.cpp (plugin) [OK] qstring-allocations/msvc-compat.cpp (plugin) [FAIL] qstring-allocations (Failed to build test. Check qstring-allocations/364092.cpp.out for details) ------------------- Contents of qstring-allocations/364092.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/364092.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/364092.cpp. ------------------- [OK] qstring-allocations/ui_foo.cpp (plugin) [FAIL] qstring-allocations (Failed to build test. Check qstring-allocations/no-msvc-compat.cpp.out for details) ------------------- Contents of qstring-allocations/no-msvc-compat.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/no-msvc-compat.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/no-msvc-compat.cpp. ------------------- [OK] qstring-allocations/main.cpp (plugin) [FAIL] qstring-allocations (Failed to build test. Check qstring-allocations/msvc-compat.cpp.out for details) ------------------- Contents of qstring-allocations/msvc-compat.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/msvc-compat.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/msvc-compat.cpp. ------------------- [FAIL] qstring-allocations (Failed to build test. Check qstring-allocations/ui_foo.cpp.out for details) ------------------- Contents of qstring-allocations/ui_foo.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/ui_foo.cpp:1: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/ui_foo.h:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/ui_foo.cpp. ------------------- [FAIL] qstring-allocations (Failed to build test. Check qstring-allocations/main.cpp.out for details) ------------------- Contents of qstring-allocations/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/main.cpp:1: In file included from /usr/include/qt5/QtCore/QString:1: In file included from /usr/include/qt5/QtCore/qstring.h:49: In file included from /usr/include/qt5/QtCore/qchar.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/qstring-allocations/main.cpp. ------------------- [FAIL] qstring-allocations/main.cpp.clazy.yaml is missing!! [FAIL] qstring-allocations/msvc-compat.cpp.clazy.yaml is missing!! [FAIL] qstring-allocations/no-msvc-compat.cpp.clazy.yaml is missing!! [FAIL] qstring-allocations/364092.cpp.clazy.yaml is missing!! [FAIL] qstring-allocations/main.cpp.clazy-standalone.yaml is missing!! [FAIL] qstring-allocations/msvc-compat.cpp.clazy-standalone.yaml is missing!! [FAIL] qstring-allocations/no-msvc-compat.cpp.clazy-standalone.yaml is missing!! [FAIL] qstring-allocations/364092.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'qstring-allocations/main.cpp.clazy.fixed' [FAIL] qstring-allocations/main.cpp (plugin, fixits) --- qstring-allocations/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qstring-allocations/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,254 +0,0 @@ -#include -#include -#include - -const char * some_char_pointer_indirection(const char *) -{ - return nullptr; -} - -const char * some_char_pointer() -{ - return nullptr; -} - -void test() -{ - QString s1; - const char *cstring = "foo"; - s1.contains(QLatin1String("string")); // Warning - s1.contains(some_char_pointer()); // OK - - QString s2 = QStringLiteral("string"); // Warning - QString s3 = QStringLiteral("string"); // OK - QString s4(some_char_pointer()); // OK - - s1 += QLatin1String("foo"); // Warning - s1 += QStringLiteral("foo"); // OK - s1 += QLatin1String("foo"); // OK - - QString s5 = QStringLiteral("BAR"); // Warning - QString s6 = QStringLiteral("BAR"); // Warning - QString s7 = QString::fromLatin1(some_char_pointer()); // OK - QString s8 = QString::fromUtf8(some_char_pointer()); // OK - QString s81 = QString::fromUtf8(some_char_pointer_indirection("foo")); // OK - QString s123 = QString::fromLatin1(some_char_pointer_indirection("foo")); // OK - - QString s9 = QStringLiteral("string"); // Warning - s9 = QStringLiteral("string"); // Warning - s9 = QLatin1String(some_char_pointer_indirection("foo")); // OK - QString s10 = true ? QStringLiteral("string1") : QStringLiteral("string2"); // Warning - s10 = true ? QStringLiteral("string1") : QStringLiteral("string2"); // Warning - - QString s11 = QStringLiteral("foo"); // Warning - QStringList stringList; - stringList << QString::fromLatin1("foo", 1); // OK - QString s12 = QLatin1String(""); // OK, QString is optimized for the empty case - QString s = QLatin1String(cstring + sizeof("foo")); // OK - s = QStringLiteral("bar %1").arg(1); // Warning - s = QString::fromLatin1(true ? "foo" : "foo2").arg(1); // Warning - s += QLatin1String( // Warning: Multi-line, to test FIXIT - "foo" ); - QString::fromLatin1(true ? cstring : "cstring"); // OK - QString escaped = QStringLiteral("\\\\"); // Warning - QString s13 = QStringLiteral("foo"); // Warning - QString s14 = QLatin1String(""); // Warning - QString s15 = QLatin1String(""); // Warning - s15.startsWith(QLatin1String("ff")); // OK - s15.startsWith(QLatin1String("ff")); // Warning, should be QLatin1String - s15.contains(QLatin1String("ff")); // Warning, should be QStringLiteral - s15.indexOf(QLatin1String("ff")); // Warning, should be QStringLiteral -} - - - - - - - - -struct A -{ - A() : member(QStringLiteral("foo")) {} // Warning - QString member; -}; - -struct A2 -{ - A2() : member(QStringLiteral("foo")) // OK - , member2(QStringLiteral("foo")) {} // Warning - void test(const QString &calendarType = QStringLiteral("gregorian") ); // Warning - QString member; - QString member2; -}; - -void test3() -{ - QString s; - if (s == QLatin1String("foo")) // Warning - return; - if (s == QStringLiteral("foo %1").arg(1)) // Warning - return; -} - -void test4(const QString &) {} - -void test5() -{ - test4(QStringLiteral("foo")); // Warning - QString s; - s.contains(QLatin1String("a")); // Warning - s.compare(QStringLiteral("a"), QLatin1String("a")); // Warning -} - -#include -void exceptionTest() // Just to test a crash -{ - try { - - } catch (std::exception e) { - - } -} - -QStringList returns_stringlist(QString) { return {}; } - -void test_foreach() -{ - foreach (const QString &s, returns_stringlist(QLatin1String("bar"))) // Warning - { - } -} - -void testCharsets() -{ - QString s = QStringLiteral("é"); - s += QStringLiteral("é"); - s += QLatin1String("e"); - s.compare(QStringLiteral("é"), QStringLiteral("e")); - s.startsWith(QStringLiteral("é")); - s.startsWith(QLatin1String("e")); - foreach (const QString &s, returns_stringlist(QLatin1String("éÈ"))) { } - QString s11 = QLatin1String("é"); - - if (s == QLatin1String("foó")) - return; - if (s == QString::fromLatin1("foó %1").arg(1)) - return; - s.contains(QLatin1String("é")); - s += QLatin1String( - "fóó" ); - QString s123 = QString::fromLatin1(some_char_pointer_indirection("fóó")); - QString s9 = QLatin1String("stringéééé"); -} - -struct TestCharsets -{ - TestCharsets() : member(QStringLiteral("é")) - , member2(QLatin1String("é")) {} // Warning - void test(const QString &calendarType = QLatin1String("éééé´e") ); - void test2(); - QString member; - QString member2; -}; - - - - - - - - - - - -void moreShouldBeQLatin1String() -{ - QString s; - bool b = (s == QLatin1String("=")); - if (s.startsWith(QLatin1String("Version=5"))) {} - if (s.startsWith(QLatin1String("Version=5"))) {} // OK - QString result = QLatin1String("Enum") + s; -} - -void TestCharsets::test2() -{ - QString s = QString::fromLatin1("é"); // Can't fix this weird one - QString s2 = QStringLiteral("é"); - s2 += QLatin1String("é"); - s2 += QStringLiteral("é"); - s = QStringLiteral("á"); - s += QStringLiteral("á"); - QStringLiteral("á"); - QStringList slist; - slist << QStringLiteral("á") << QStringLiteral("a"); -} - - - - - -#include -void testBlacklistedQRegExp() -{ - QRegExp exp1("literal"); - QRegExp exp2(QLatin1String("literal")); -} - - -void charsetEdgeCase() -{ - test4(QLatin1String("ááá")); -} - -void testQDebug() -{ - qDebug() << "test"; // OK -} - -void testEmpty() -{ - QStringList list = QStringList() << QStringLiteral("foo") << QLatin1String(""); -} - - -void test_bug358732() -{ - QStringLiteral("foo").sprintf("0x%02X", 0x1E); // Warn and use QSL - QStringLiteral("").sprintf("0x%02X", 0x1E); // Warn and use QSL -} - - -struct QTestData {}; - -template -QTestData &operator<<(QTestData &data, const T &value); - -void test_QTestData() -{ - QTestData t; - t << QStringLiteral("foo"); -} - -void test_QStringList_streamOp() -{ - QStringList list; - list << QStringLiteral("foo") << QStringLiteral("foo") << QStringLiteral("foo") << QStringLiteral("foo"); - list += QStringLiteral("foo"); - list += QStringLiteral("foo"); - list += QStringLiteral("foo"); - list += QStringLiteral("foo"); -} - -void testQLatin1String2Args() -{ - QString s2 = QLatin1String("foo", 3); -} - -QString s = QStringLiteral("ö"); -QString s2 = QString::fromUtf8("\xc3\xb6"); -QString s3 = true ? "ö" : "\xc3\xb6"; - - -// bug #391807 -Q_GLOBAL_STATIC_WITH_ARGS(const QString, strUnit, (QLatin1String("unit"))) // OK, since QStringLiteral doesn't work inside Q_GLOBAL_STATIC_WITH_ARGS Error comparing files:[Errno 2] No such file or directory: 'qstring-allocations/msvc-compat.cpp.clazy.fixed' [FAIL] qstring-allocations/msvc-compat.cpp (plugin, fixits) --- qstring-allocations/msvc-compat.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qstring-allocations/msvc-compat.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -#include -#include - -static QStringList list = { "foo" }; - -void test() -{ - QString s = QStringLiteral("foo"); - QString s2 = "foo" "bar"; -} - -void testMultiPartStringLiterals() -{ - - QString s = "foo""bar"; - s += "foo""bár"; - s += "foo" - "bar" - "Test"; - s = QString::fromLatin1("foo" "bar"); - s += QString::fromLatin1("foo" "bar"); -} Error comparing files:[Errno 2] No such file or directory: 'qstring-allocations/no-msvc-compat.cpp.clazy.fixed' [FAIL] qstring-allocations/no-msvc-compat.cpp (plugin, fixits) --- qstring-allocations/no-msvc-compat.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qstring-allocations/no-msvc-compat.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -#include -#include - -static QStringList list = { QStringLiteral("foo") }; - -void test() -{ - QString s = QStringLiteral("foo"); -} - -void testMultiPartStringLiterals() -{ - - QString s = QStringLiteral("foo""bar"); - s += QStringLiteral("foo""bár"); - s += QLatin1String("foo" - "bar" - "Test"); - s = QStringLiteral("foo" "bar"); - s += QLatin1String("foo" "bar"); -} Error comparing files:[Errno 2] No such file or directory: 'qstring-allocations/364092.cpp.clazy.fixed' [FAIL] qstring-allocations/364092.cpp (plugin, fixits) --- qstring-allocations/364092.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ qstring-allocations/364092.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -#include - -inline constexpr QLatin1String operator"" _L1 (const char *str, std::size_t len) -{ - return QLatin1String(str, len); -} - -void test364092() -{ - QString s = "F"_L1; // Warning -} - -void dummy() -{ - // Add at least one thing that will trigger a fixit it, otherwise, without - // any fixit the file won't be generated and that breaks the test - QString s = QStringLiteral("test"); -} FAIL Test time = 3.80 sec ---------------------------------------------------------- Test Failed. "qstring-allocations" end time: Oct 17 00:45 BST "qstring-allocations" time elapsed: 00:00:03 ---------------------------------------------------------- 88/93 Testing: old-style-connect 88/93 Test: old-style-connect Command: "/usr/bin/python3" "run_tests.py" "old-style-connect" Directory: /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/ "old-style-connect" start time: Oct 17 00:45 BST Output: ---------------------------------------------------------- [OK] old-style-connect/usingnamespace.cpp (plugin) [OK] old-style-connect/namespaces.cpp (plugin) [OK] old-style-connect/q_private_slot.cpp (plugin) [FAIL] old-style-connect (Failed to build test. Check old-style-connect/usingnamespace.cpp.out for details) ------------------- Contents of old-style-connect/usingnamespace.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/usingnamespace.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/usingnamespace.cpp. ------------------- [FAIL] old-style-connect (Failed to build test. Check old-style-connect/q_private_slot.cpp.out for details) ------------------- Contents of old-style-connect/q_private_slot.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/q_private_slot.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/q_private_slot.cpp. ------------------- [FAIL] old-style-connect (Failed to build test. Check old-style-connect/namespaces.cpp.out for details) ------------------- Contents of old-style-connect/namespaces.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/namespaces.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/namespaces.cpp. ------------------- [OK] old-style-connect/main.cpp (plugin) [OK] old-style-connect/port_qsignalspy.cpp (plugin) [FAIL] old-style-connect (Failed to build test. Check old-style-connect/main.cpp.out for details) ------------------- Contents of old-style-connect/main.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/main.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/main.cpp. ------------------- [FAIL] old-style-connect (Failed to build test. Check old-style-connect/port_qsignalspy.cpp.out for details) ------------------- Contents of old-style-connect/port_qsignalspy.cpp.out: In file included from /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/port_qsignalspy.cpp:1: In file included from /usr/include/qt5/QtCore/QObject:1: In file included from /usr/include/qt5/QtCore/qobject.h:46: In file included from /usr/include/qt5/QtCore/qobjectdefs.h:48: In file included from /usr/include/qt5/QtCore/qnamespace.h:43: In file included from /usr/include/qt5/QtCore/qglobal.h:46: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/cstddef:50:10: fatal error: 'stddef.h' file not found #include ^~~~~~~~~~ 1 error generated. Error while processing /var/tmp/portage/dev-util/clazy-1.10/work/clazy-1.10/tests/old-style-connect/port_qsignalspy.cpp. ------------------- [FAIL] old-style-connect/main.cpp.clazy.yaml is missing!! [FAIL] old-style-connect/usingnamespace.cpp.clazy.yaml is missing!! [FAIL] old-style-connect/namespaces.cpp.clazy.yaml is missing!! [FAIL] old-style-connect/q_private_slot.cpp.clazy.yaml is missing!! [FAIL] old-style-connect/port_qsignalspy.cpp.clazy.yaml is missing!! [FAIL] old-style-connect/main.cpp.clazy-standalone.yaml is missing!! [FAIL] old-style-connect/usingnamespace.cpp.clazy-standalone.yaml is missing!! [FAIL] old-style-connect/namespaces.cpp.clazy-standalone.yaml is missing!! [FAIL] old-style-connect/q_private_slot.cpp.clazy-standalone.yaml is missing!! [FAIL] old-style-connect/port_qsignalspy.cpp.clazy-standalone.yaml is missing!! Error comparing files:[Errno 2] No such file or directory: 'old-style-connect/main.cpp.clazy.fixed' [FAIL] old-style-connect/main.cpp (plugin, fixits) --- old-style-connect/main.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ old-style-connect/main.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,386 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - - -class MyObj : public QObject -{ - Q_OBJECT -public: - -public Q_SLOTS: - void slot1(); - void slot2() {}; - void slotWithArg(int i = 0) {}; -Q_SIGNALS: - void signal1(); -}; - -void foo() -{ - MyObj *o1; - MyObj *o2; - - o1->connect(o1, &MyObj::signal1, o2, &MyObj::slot1); - o1->connect(o1, &MyObj::signal1, o1, &MyObj::slot1); - o1->connect(o1, &MyObj::signal1, o1, &MyObj::signal1); - QObject::connect(o1, &MyObj::signal1, o2, &MyObj::signal1); - QObject::disconnect(o1, &MyObj::signal1, o2, &MyObj::signal1); - - o1->connect(o1, &MyObj::signal1, &MyObj::signal1); - QObject::connect(o1, &MyObj::signal1, o2, &MyObj::signal1); - QObject::disconnect(o1, &MyObj::signal1, o2, &MyObj::signal1); - - QTimer::singleShot(0, o1, &MyObj::slot1); - QTimer::singleShot(0, o1, &MyObj::slot1); - // QTimer doesn't support it with new connect syntax: Needs lambda - QTimer::singleShot(0, o1, SLOT(slotWithArg())); -}; - - -void MyObj::slot1() -{ - MyObj *o1; - connect(o1, &MyObj::signal1, this, &MyObj::slot2); -} - -class MyObjDerived : public MyObj -{ - Q_OBJECT -public: - MyObjDerived() - { - connect(this, &MyObj::signal1, this, &MyObj::slot2); - connect(this, &MyObj::signal1, this, &MyObj::slot2); - } -}; - -void testDerived() -{ - MyObjDerived *o1; - o1->connect(o1, &MyObj::signal1, o1, &MyObj::slot2); - o1->connect(o1, &MyObj::signal1, o1, &MyObj::slot2); - QObject::connect(o1, &MyObj::signal1, o1, &MyObj::slot2); -} - -class OtherObj : public QObject -{ - Q_OBJECT -public: -public Q_SLOTS: - void otherSlot() {} -}; - -void testOther() -{ - OtherObj *other; - MyObj *o1; - other->connect(o1, &MyObj::signal1, other, &OtherObj::otherSlot); -} - -class WithNesting : public QObject -{ - Q_OBJECT -public Q_SLOTS: - void slot1() {} -signals: void signal1(); -private Q_SLOTS: void privSlot() {} -public: - class Private; - friend class Private; -}; - -class WithNesting::Private : public QObject -{ - Q_OBJECT -public: - Private(WithNesting *q) - { - q->connect(q, &WithNesting::signal1, q, &WithNesting::slot1); - connect(q, &WithNesting::signal1, this, &Private::pSlot1); - connect(q, &WithNesting::signal1, q, &WithNesting::privSlot); - QTimer::singleShot(0, this, &Private::privateSlot1); // Testing if private slot gets fixed, it should due to "this" - } -public Q_SLOTS: - void pSlot1() {} -private Q_SLOT: - void privateSlot1() {} -signals: - void signal1(); -}; - -void testNested() -{ - WithNesting::Private *p; - QObject::connect(p, SIGNAL(signal1()), p, SLOT(privateSlot1())); // Warning, but can't fix, can't take address of private - - // QObject::connect(p, &WithNesting::Private::signal1, p, &WithNesting::Private::privateSlot1); -} - -void testCharVariables(const char *methodName) -{ - QObject *o; - QTimer::singleShot(0, o, methodName); // OK - QObject::connect(o, methodName, 0, methodName); // OK - o->connect(o, methodName, 0, methodName); // OK - o->connect(o, SIGNAL(destroyed()), 0, methodName); // OK -} - -void testQState() -{ - QState *s; - QObject *o; - s->addTransition(o, &QObject::destroyed, s); // Warning - s->addTransition(o, &QObject::destroyed, s); // OK - - WithNesting *wn; - s->addTransition(wn, SLOT(privSlot()), s); // Warning, but can't fix -} - -class TestingArgumentCounts : public QObject -{ - Q_OBJECT -public: - TestingArgumentCounts() - { - connect(this, &TestingArgumentCounts::si0, this, &TestingArgumentCounts::sl0); // Warning and fixit - connect(this, SIGNAL(si0()), SLOT(sl1(QString))); // Warning and can't fix - connect(this, &TestingArgumentCounts::si1, this, &TestingArgumentCounts::sl0); // Warning and can fix - connect(this, SIGNAL(si2(QString)), SLOT(sl2())); // Warning and can't fix - } -public Q_SLOTS: - void sl0() {} - void sl1(QString) {} - void sl2(QString,QString,QString = QString()) {} - -signals: - void si0(); - void si1(QString); - void si2(QString,QString); - void si3(QString,QString,QString); -}; - - -class TestingProtected : public QObject -{ - Q_OBJECT -protected Q_SLOT: - void protec(); -}; - - -class DerivedTestingProtected : public TestingProtected -{ - void test() - { - connect(this, &QObject::destroyed, this, &DerivedTestingProtected::protec); - } -}; - - -void testQPointer() -{ - QPointer p8733 = new WithNesting(); - QObject::connect(p8733.data(), &QObject::destroyed, p8733.data(), &QObject::deleteLater); // Warning, and when fixed should have .data() due to gcc bug - QObject::connect(p8733, &WithNesting::destroyed, p8733, &WithNesting::deleteLater); - QObject::connect(p8733.data(), &QObject::destroyed, p8733.data(), &QObject::deleteLater); // Warning - QObject::connect(p8733.data(), &WithNesting::destroyed, p8733.data(), &WithNesting::deleteLater); - p8733->connect(p8733, SIGNAL(destroyed()), SLOT(deleteLater())); // Warning, but no-fix, not implemented. Fails to get implicit caller for now -} - - - - - - -struct S1 -{ -}; - -struct S2 -{ - -}; - -struct S3 -{ - S3(S2); -}; - -struct S1a : public S1 -{ - -}; - -class TestTypes : public QObject -{ - Q_OBJECT - TestTypes() - { - connect(this, &TestTypes::s1, this, &TestTypes::s2); // Warning && fixit - connect(this, &TestTypes::s2, this, &TestTypes::s1); // Warning && fixit - connect(this, SIGNAL(s2(int)), SIGNAL(s9(float))); // Warning && no-fixit - connect(this, SIGNAL(s2(int)), SIGNAL(s10(double))); // Warning && no-fixit - connect(this, SIGNAL(s9(float)), SIGNAL(s2(int))); // Warning && no-fixit - connect(this, SIGNAL(s10(double)), SIGNAL(s2(int))); // Warning && no-fixit - connect(this, SIGNAL(s10(double)), SIGNAL(s7(char))); // Warning && no-fixit - connect(this, SIGNAL(s7(char)), SIGNAL(s10(double))); // Warning && no-fixit - connect(this, SIGNAL(s3(int*)), SIGNAL(s1(bool))); // Warning && no-fixit - connect(this, SIGNAL(s3(int*)), SIGNAL(s6(float *))); // Warning && no-fixit - connect(this, SIGNAL(s1(bool)), SIGNAL(s3(int*))); // Warning && no-fixit - connect(this, SIGNAL(doubleClicked(QModelIndex)), SIGNAL(triggered(bool))); // Warning && no-fixit - connect(this, SIGNAL(s27(const S1 *)), SIGNAL(s23(const S1))); // Warning && no-fixit - connect(this, SIGNAL(s22(const S1)), SIGNAL(s27(const S1 *))); // Warning && no-fixit - connect(this, &TestTypes::s31, this, &TestTypes::s31); // Warning && fixit - connect(this, &TestTypes::s31, this, &TestTypes::s23); // Warning && fixit - connect(this, &TestTypes::s11, this, &TestTypes::s31); // Warning && fixit - connect(this, &TestTypes::s31, this, &TestTypes::s11); // Warning && fixit - } - -signals: - void s1(bool); - void s2(int); - void s3(int *); - void s4(bool *); - void s5(float *); - void s6(float *); - void s7(char); - void s8(char *); - void s9(float); - void s10(double); - void s11(S1); - void s12(S2); - void s13(S3); - void s14(S1a); - void s15(S1*); - void s16(S2*); - void s17(S3*); - void s18(S1a*); - void s19(S1&); - void s20(S2&); - void s21(S3&); - void s22(S1a&); - - void s23(const S1); - void s24(const S2); - void s25(const S3); - void s26(const S1a); - - void s27(const S1 *); - void s28(const S2 *); - void s29(const S3 *); - void s30(const S1a *); - - void s31(const S1 &); - void s32(S1 &); - - void doubleClicked(const QModelIndex &); - void triggered(bool yes = false); - -}; - -namespace Kleo { -class ProgressDialog : public QProgressDialog -{ - Q_OBJECT -public: - ProgressDialog(int ms); -}; -} - -Kleo::ProgressDialog::ProgressDialog(int ms) -{ - QTimer::singleShot(ms, this, &ProgressDialog::forceShow); -} - -struct P { - QPointer ptr; -}; - - -class TestQPointerMember : public QObject -{ - Q_OBJECT -public: - TestQPointerMember() - { - QPointer ptr; - connect(m_ptr.data(), &MyObj::signal1, this, &TestQPointerMember::slot1); - connect(m_ptr.data(), &MyObj::signal1, m_ptr.data(), &MyObj::slot1); - connect(ptr.data(), &MyObj::signal1, this, &TestQPointerMember::slot1); - connect(ptr.data(), &MyObj::signal1, ptr.data(), &MyObj::slot1); - connect(p->ptr.data(), &MyObj::signal1, p->ptr.data(), &MyObj::slot1); - connect(d_func()->ptr.data(), &MyObj::signal1, d_func()->ptr.data(), &MyObj::slot1); - ptr->disconnect(this); - } - - P* d_func() { return p; }; - -public Q_SLOTS: - void slot1() {} - -private: - QPointer m_ptr; - P *p; -}; - - -void testWhitelist() -{ - QDBusInterface *i; - QObject *o; - o->connect(o, SIGNAL(destroyed()), i, SLOT(foo())); -} - -int main() { return 0; } - - - - -class TestStatic : public QObject -{ -public: - TestStatic(QObject *parent = nullptr) : QObject(parent) - { - } - -public slots: - static void test(QObject *) - { - } -}; - -void testStatic() -{ - auto test = new TestStatic; - TestStatic::connect(test, SIGNAL(destroyed(QObject*)), test, SLOT(test(QObject*))); - TestStatic::disconnect(test, SIGNAL(destroyed(QObject*)), test, SLOT(test(QObject*))); -} - -void test1ArgDisconnect() -{ - QObject *o; - o->disconnect(SIGNAL(destroyed())); -} - -void testQMenuAndQMessageBox() -{ - QMenu m; - OtherObj o; - m.addAction("test", &o, &OtherObj::otherSlot); // Warn - m.addAction("test", &o, &OtherObj::otherSlot); // OK - QMessageBox box; - box.open(); // OK - box.open(&o,SLOT(otherSlot())); // Warn -} - -#include "main.moc" Error comparing files:[Errno 2] No such file or directory: 'old-style-connect/usingnamespace.cpp.clazy.fixed' [FAIL] old-style-connect/usingnamespace.cpp (plugin, fixits) --- old-style-connect/usingnamespace.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ old-style-connect/usingnamespace.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -#include - -namespace Foo2 { -class MyObj : public QObject -{ - Q_OBJECT -public: - -public Q_SLOTS: - void slot1() {} - void slot2() {} -Q_SIGNALS: - void signal1(); -}; - -} - -using namespace Foo2; - -void foo1() -{ - Foo2::MyObj *o1 = new Foo2::MyObj(); - QObject::connect(o1, &MyObj::signal1, o1, &MyObj::slot1); // Warning -} - -int main() { return 0; } - -#include "usingnamespace.moc" Error comparing files:[Errno 2] No such file or directory: 'old-style-connect/namespaces.cpp.clazy.fixed' [FAIL] old-style-connect/namespaces.cpp (plugin, fixits) --- old-style-connect/namespaces.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ old-style-connect/namespaces.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#include -#include "namespaces.h" // Test that we use the most qualified name in headers - -namespace Foo -{ - class MyObj2 : public QObject - { - Q_OBJECT - public Q_SLOTS: - void separateNSSlot() {}; - }; -} - -namespace Foo { -class MyObj : public QObject -{ - Q_OBJECT -public: - -public Q_SLOTS: - void slot1() {}; - void slot2() {}; -Q_SIGNALS: - void signal1(); -}; - - -void foo() -{ - Foo::MyObj *o1 = new Foo::MyObj(); - MyObj2 *o2; - QObject::connect(o1, &MyObj::signal1, o1, &MyObj::slot1); // Warning - QObject::connect(o1, &MyObj::signal1, o2, &MyObj2::separateNSSlot); // Warning -} - -} - -void foo2() -{ - Foo::MyObj *o1; - Foo::MyObj2 *o2; - QObject::connect(o1, &Foo::MyObj::signal1, o1, &Foo::MyObj::slot1); // Warning - QObject::connect(o1, &Foo::MyObj::signal1, o2, &Foo::MyObj2::separateNSSlot); // Warning -} - - -using namespace Foo; // Comes after, so shouldn't have influence -int main() { return 0; } -#include "namespaces.moc" Error comparing files:[Errno 2] No such file or directory: 'old-style-connect/q_private_slot.cpp.clazy.fixed' [FAIL] old-style-connect/q_private_slot.cpp (plugin, fixits) --- old-style-connect/q_private_slot.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ old-style-connect/q_private_slot.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,48 +0,0 @@ -#include - -class MyObj : public QObject -{ - Q_OBJECT - MyObj() - { - connect(this, SIGNAL(destroyed()), SLOT(privSlot())); - connect(this, SIGNAL(destroyed()), this, SLOT(privSlot())); - connect(this, SIGNAL(destroyed()), this, SLOT(privSlot2())); - } -public: - class Private; - Private * d; - Q_PRIVATE_SLOT(d, void privSlot()) - Q_PRIVATE_SLOT(d, void privSlot2()) -signals: - void privSlot2(); // Signal with the same name as private slot -}; - -class MyObj::Private -{ -public: - Private() - { - q->connect(q, SIGNAL(destroyed()), SLOT(privSlot())); - q->connect(q, SIGNAL(destroyed()), q, SLOT(privSlot())); - QObject *other; - q->connect(other, SIGNAL(destroyed()), SLOT(privSlot())); - } - - void somePrivFunction(); - -public Q_SLOTS: - void privSlot(); - void privSlot2(); -private: - MyObj *q; -}; - -void MyObj::Private::somePrivFunction() -{ - QObject *other; - q->connect(other, SIGNAL(destroyed()), SLOT(privSlot())); - q->connect(other, SIGNAL(doesnt_exist()), SLOT(privSlot())); -} - -int main() { return 0; } Error comparing files:[Errno 2] No such file or directory: 'old-style-connect/port_qsignalspy.cpp.clazy.fixed' [FAIL] old-style-connect/port_qsignalspy.cpp (plugin, fixits) --- old-style-connect/port_qsignalspy.cpp.fixed.expected 2021-07-20 15:54:58.000000000 +0100 +++ old-style-connect/port_qsignalspy.cpp.clazy.fixed 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -#include -#include -#include -#include -#include - -class MyObj : public QObject -{ - Q_OBJECT -private Q_SLOTS: - void testMethod() - { - QObject *obj = new QObject; - QSignalSpy destroyedSpy(obj, &QObject::destroyed); // Warn - QVERIFY(destroyedSpy.isValid()); - - QLineEdit lineEdit; - QSignalSpy textChangedSpy(&lineEdit, &QLineEdit::textChanged); // Warn - QVERIFY(textChangedSpy.isValid()); - - QComboBox combo; - QSignalSpy activatedIntSpy(&combo, SIGNAL(activated(int))); // Warn - QVERIFY(activatedIntSpy.isValid()); - QSignalSpy activatedStringSpy(&combo, SIGNAL(activated(QString))); // Warn - QVERIFY(activatedStringSpy.isValid()); - } -}; - -int main() { return 0; } FAIL Test time = 6.10 sec ---------------------------------------------------------- Test Failed. "old-style-connect" end time: Oct 17 00:45 BST "old-style-connect" time elapsed: 00:00:06 ---------------------------------------------------------- End testing: Oct 17 00:45 BST