-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
ClazyTests.generated.cmake
118 lines (115 loc) · 4.29 KB
/
ClazyTests.generated.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# This file was autogenerated by running: ./dev-scripts/generate.py --generate
if ($ENV{CI_JOB_NAME_SLUG} MATCHES "qt5")
set(TEST_VERSION_OPTION "--qt-versions=5")
elseif($ENV{CI_JOB_NAME_SLUG} MATCHES "qt6")
set(TEST_VERSION_OPTION "--qt-versions=6")
endif()
macro(add_clazy_test name)
add_test(NAME ${name} COMMAND python3 run_tests.py ${name} --verbose ${TEST_VERSION_OPTION} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests/)
if (CLANG_EXECUTABLE_PATH)
set(CLANG_CXX_TEST "CLANGXX=${CLANG_EXECUTABLE_PATH};")
endif()
set_property(TEST ${name} PROPERTY
ENVIRONMENT "${CLANG_CXX_TEST}CLAZYPLUGIN_CXX=$<TARGET_FILE:ClazyPlugin>;CLAZYSTANDALONE_CXX=$<TARGET_FILE:clazy-standalone>;$<$<BOOL:${HAS_STD_FILESYSTEM}>:CLAZY_HAS_FILESYSTEM=>"
)
endmacro()
add_clazy_test(assert-with-side-effects)
add_clazy_test(container-inside-loop)
add_clazy_test(detaching-member)
add_clazy_test(heap-allocated-small-trivial-type)
add_clazy_test(ifndef-define-typo)
add_clazy_test(isempty-vs-count)
add_clazy_test(jni-signatures)
add_clazy_test(qhash-with-char-pointer-key)
add_clazy_test(qproperty-type-mismatch)
add_clazy_test(qrequiredresult-candidates)
add_clazy_test(qstring-varargs)
add_clazy_test(qt-keyword-emit)
add_clazy_test(qt-keywords)
add_clazy_test(qt6-deprecated-api-fixes)
add_clazy_test(qt6-fwd-fixes)
add_clazy_test(qt6-header-fixes)
add_clazy_test(qt6-qhash-signature)
add_clazy_test(qt6-qlatin1stringchar-to-u)
add_clazy_test(qvariant-template-instantiation)
add_clazy_test(raw-environment-function)
add_clazy_test(reserve-candidates)
add_clazy_test(sanitize-inline-keyword)
add_clazy_test(signal-with-return-value)
add_clazy_test(thread-with-slots)
add_clazy_test(tr-non-literal)
add_clazy_test(unexpected-flag-enumerator-value)
add_clazy_test(unneeded-cast)
add_clazy_test(unused-result-check)
add_clazy_test(use-arrow-operator-instead-of-data)
add_clazy_test(use-chrono-in-qtimer)
add_clazy_test(used-qunused-variable)
add_clazy_test(connect-by-name)
add_clazy_test(connect-non-signal)
add_clazy_test(connect-not-normalized)
add_clazy_test(container-anti-pattern)
add_clazy_test(empty-qstringliteral)
add_clazy_test(fully-qualified-moc-types)
add_clazy_test(lambda-in-connect)
add_clazy_test(lambda-unique-connection)
add_clazy_test(lowercase-qml-type-name)
add_clazy_test(mutable-container-key)
add_clazy_test(no-module-include)
add_clazy_test(overloaded-signal)
add_clazy_test(qcolor-from-literal)
add_clazy_test(qdatetime-utc)
add_clazy_test(qenums)
add_clazy_test(qfileinfo-exists)
add_clazy_test(qgetenv)
add_clazy_test(qmap-with-pointer-key)
add_clazy_test(qstring-arg)
add_clazy_test(qstring-comparison-to-implicit-char)
add_clazy_test(qstring-insensitive-allocation)
add_clazy_test(qstring-ref)
add_clazy_test(qt-macros)
add_clazy_test(strict-iterators)
add_clazy_test(temporary-iterator)
add_clazy_test(unused-non-trivial-variable)
add_clazy_test(use-static-qregularexpression)
add_clazy_test(writing-to-temporary)
add_clazy_test(wrong-qevent-cast)
add_clazy_test(wrong-qglobalstatic)
add_clazy_test(auto-unexpected-qstringbuilder)
add_clazy_test(child-event-qobject-cast)
add_clazy_test(connect-3arg-lambda)
add_clazy_test(const-signal-or-slot)
add_clazy_test(detaching-temporary)
add_clazy_test(foreach)
add_clazy_test(incorrect-emit)
add_clazy_test(install-event-filter)
add_clazy_test(non-pod-global-static)
add_clazy_test(overridden-signal)
add_clazy_test(post-event)
add_clazy_test(qdeleteall)
add_clazy_test(qhash-namespace)
add_clazy_test(qlatin1string-non-ascii)
add_clazy_test(qproperty-without-notify)
add_clazy_test(qstring-left)
add_clazy_test(range-loop-detach)
add_clazy_test(range-loop-reference)
add_clazy_test(returning-data-from-temporary)
add_clazy_test(rule-of-two-soft)
add_clazy_test(skipped-base-method)
add_clazy_test(virtual-signal)
add_clazy_test(base-class-event)
add_clazy_test(copyable-polymorphic)
add_clazy_test(ctor-missing-parent-argument)
add_clazy_test(function-args-by-ref)
add_clazy_test(function-args-by-value)
add_clazy_test(global-const-char-pointer)
add_clazy_test(implicit-casts)
add_clazy_test(missing-qobject-macro)
add_clazy_test(missing-typeinfo)
add_clazy_test(old-style-connect)
add_clazy_test(qstring-allocations)
add_clazy_test(returning-void-expression)
add_clazy_test(rule-of-three)
add_clazy_test(static-pmf)
add_clazy_test(virtual-call-ctor)
add_clazy_test(clazy-standalone)
add_clazy_test(clazy)