diff --git a/tests/clazy/config.json b/tests/clazy/config.json index 84f79ff..055336c 100644 --- a/tests/clazy/config.json +++ b/tests/clazy/config.json @@ -1,50 +1,52 @@ { "minimum_clang_version" : 370, "blacklist_platforms" : "win32", "tests" : [ { "filename" : "test_requested_checks.sh", "compare_everything" : true, "minimum_qt_version" : 50500 }, { "filename" : "suppressions.cpp", "checks" : ["qstring-allocations", "foreach", "qdatetime-utc"] }, { "filename" : "suppressionsWholeFile.cpp", "checks" : ["qstring-allocations", "foreach"] }, { "filename" : "werror.cpp", "flags" : "-Werror", "must_fail": true, "checks" : ["qgetenv"] }, { "filename" : "werror2.cpp", "flags" : "-Werror", "checks" : ["qgetenv"], "env" : { "CLAZY_NO_WERROR" : "1" } }, { "filename" : "qt4compat1.cpp", - "checks" : ["old-style-connect"] + "checks" : ["old-style-connect"], + "has_fixits" : true }, { "filename" : "qt4compat2.cpp", "checks" : ["old-style-connect"], "qt4compat": true }, { "filename" : "onlyQt1.cpp", "checks" : ["old-style-connect"], - "only_qt" : false + "only_qt" : false, + "has_fixits" : true }, { "filename" : "onlyQt2.cpp", "checks" : ["old-style-connect"], "only_qt" : true } ] } diff --git a/tests/clazy/onlyQt1.cpp.fixed.expected b/tests/clazy/onlyQt1.cpp.fixed.expected new file mode 100644 index 0000000..4a85bb6 --- /dev/null +++ b/tests/clazy/onlyQt1.cpp.fixed.expected @@ -0,0 +1,7 @@ +#include + +void test() +{ + QObject o; + o.connect(&o, SIGNAL(foo()), SLOT(bar())); +} diff --git a/tests/clazy/qt4compat1.cpp.fixed.expected b/tests/clazy/qt4compat1.cpp.fixed.expected new file mode 100644 index 0000000..4a85bb6 --- /dev/null +++ b/tests/clazy/qt4compat1.cpp.fixed.expected @@ -0,0 +1,7 @@ +#include + +void test() +{ + QObject o; + o.connect(&o, SIGNAL(foo()), SLOT(bar())); +}