Changeset View
Changeset View
Standalone View
Standalone View
src/Checks.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | #include "checks/manuallevel/qt4-qstring-from-array.h" | 42 | #include "checks/manuallevel/qt4-qstring-from-array.h" | ||
43 | #include "checks/manuallevel/qvariant-template-instantiation.h" | 43 | #include "checks/manuallevel/qvariant-template-instantiation.h" | ||
44 | #include "checks/manuallevel/raw-environment-function.h" | 44 | #include "checks/manuallevel/raw-environment-function.h" | ||
45 | #include "checks/manuallevel/reserve-candidates.h" | 45 | #include "checks/manuallevel/reserve-candidates.h" | ||
46 | #include "checks/manuallevel/signal-with-return-value.h" | 46 | #include "checks/manuallevel/signal-with-return-value.h" | ||
47 | #include "checks/manuallevel/thread-with-slots.h" | 47 | #include "checks/manuallevel/thread-with-slots.h" | ||
48 | #include "checks/manuallevel/tr-non-literal.h" | 48 | #include "checks/manuallevel/tr-non-literal.h" | ||
49 | #include "checks/manuallevel/unneeded-cast.h" | 49 | #include "checks/manuallevel/unneeded-cast.h" | ||
50 | #include "checks/manuallevel/jnisignatures.h" | ||||
50 | #include "checks/level0/connect-by-name.h" | 51 | #include "checks/level0/connect-by-name.h" | ||
51 | #include "checks/level0/connect-non-signal.h" | 52 | #include "checks/level0/connect-non-signal.h" | ||
52 | #include "checks/level0/connect-not-normalized.h" | 53 | #include "checks/level0/connect-not-normalized.h" | ||
53 | #include "checks/level0/container-anti-pattern.h" | 54 | #include "checks/level0/container-anti-pattern.h" | ||
54 | #include "checks/level0/empty-qstringliteral.h" | 55 | #include "checks/level0/empty-qstringliteral.h" | ||
55 | #include "checks/level0/fully-qualified-moc-types.h" | 56 | #include "checks/level0/fully-qualified-moc-types.h" | ||
56 | #include "checks/level0/lambda-in-connect.h" | 57 | #include "checks/level0/lambda-in-connect.h" | ||
57 | #include "checks/level0/lambda-unique-connection.h" | 58 | #include "checks/level0/lambda-unique-connection.h" | ||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 124 | { | |||
138 | registerFixIt(1, "fix-qt4-qstring-from-array", "qt4-qstring-from-array"); | 139 | registerFixIt(1, "fix-qt4-qstring-from-array", "qt4-qstring-from-array"); | ||
139 | registerCheck(check<QVariantTemplateInstantiation>("qvariant-template-instantiation", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | 140 | registerCheck(check<QVariantTemplateInstantiation>("qvariant-template-instantiation", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||
140 | registerCheck(check<RawEnvironmentFunction>("raw-environment-function", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | 141 | registerCheck(check<RawEnvironmentFunction>("raw-environment-function", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||
141 | registerCheck(check<ReserveCandidates>("reserve-candidates", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | 142 | registerCheck(check<ReserveCandidates>("reserve-candidates", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||
142 | registerCheck(check<SignalWithReturnValue>("signal-with-return-value", ManualCheckLevel, RegisteredCheck::Option_VisitsDecls)); | 143 | registerCheck(check<SignalWithReturnValue>("signal-with-return-value", ManualCheckLevel, RegisteredCheck::Option_VisitsDecls)); | ||
143 | registerCheck(check<ThreadWithSlots>("thread-with-slots", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts | RegisteredCheck::Option_VisitsDecls)); | 144 | registerCheck(check<ThreadWithSlots>("thread-with-slots", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts | RegisteredCheck::Option_VisitsDecls)); | ||
144 | registerCheck(check<TrNonLiteral>("tr-non-literal", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | 145 | registerCheck(check<TrNonLiteral>("tr-non-literal", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||
145 | registerCheck(check<UnneededCast>("unneeded-cast", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | 146 | registerCheck(check<UnneededCast>("unneeded-cast", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||
147 | registerCheck(check<JniSignatures>("jni-signatures", ManualCheckLevel, RegisteredCheck::Option_VisitsStmts)); | ||||
146 | registerCheck(check<ConnectByName>("connect-by-name", CheckLevel0, RegisteredCheck::Option_VisitsDecls)); | 148 | registerCheck(check<ConnectByName>("connect-by-name", CheckLevel0, RegisteredCheck::Option_VisitsDecls)); | ||
147 | registerCheck(check<ConnectNonSignal>("connect-non-signal", CheckLevel0, RegisteredCheck::Option_Qt4Incompatible | RegisteredCheck::Option_VisitsStmts)); | 149 | registerCheck(check<ConnectNonSignal>("connect-non-signal", CheckLevel0, RegisteredCheck::Option_Qt4Incompatible | RegisteredCheck::Option_VisitsStmts)); | ||
148 | registerCheck(check<ConnectNotNormalized>("connect-not-normalized", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | 150 | registerCheck(check<ConnectNotNormalized>("connect-not-normalized", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | ||
149 | registerCheck(check<ContainerAntiPattern>("container-anti-pattern", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | 151 | registerCheck(check<ContainerAntiPattern>("container-anti-pattern", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | ||
150 | registerCheck(check<EmptyQStringliteral>("empty-qstringliteral", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | 152 | registerCheck(check<EmptyQStringliteral>("empty-qstringliteral", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | ||
151 | registerCheck(check<FullyQualifiedMocTypes>("fully-qualified-moc-types", CheckLevel0, RegisteredCheck::Option_VisitsDecls)); | 153 | registerCheck(check<FullyQualifiedMocTypes>("fully-qualified-moc-types", CheckLevel0, RegisteredCheck::Option_VisitsDecls)); | ||
152 | registerCheck(check<LambdaInConnect>("lambda-in-connect", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | 154 | registerCheck(check<LambdaInConnect>("lambda-in-connect", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | ||
153 | registerCheck(check<LambdaUniqueConnection>("lambda-unique-connection", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | 155 | registerCheck(check<LambdaUniqueConnection>("lambda-unique-connection", CheckLevel0, RegisteredCheck::Option_VisitsStmts)); | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |