How To Install clazy on Fedora 36

In this tutorial we learn how to install clazy in Fedora 36. clazy is Qt oriented code checker based on clang framework

Introduction

In this tutorial we learn how to install clazy on Fedora 36.

What is clazy

clazy is a compiler plugin which allows clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring.

We can use yum or dnf to install clazy on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install clazy.

Install clazy on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install clazy using dnf by running the following command:

sudo dnf -y install clazy

Install clazy on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install clazy using yum by running the following command:

sudo yum -y install clazy

How To Uninstall clazy on Fedora 36

To uninstall only the clazy package we can use the following command:

sudo dnf remove clazy

clazy Package Contents on Fedora 36

/usr/bin/clazy
/usr/bin/clazy-standalone
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/839bc5991c02a54ee373f18554b0d030575fea
/usr/lib/.build-id/10
/usr/lib/.build-id/10/789b3ef43802d226fa4686962f10d0530c8785
/usr/lib64/ClazyPlugin.so
/usr/share/doc/clazy
/usr/share/doc/clazy/COPYING-LGPL2.txt
/usr/share/doc/clazy/HOWTO
/usr/share/doc/clazy/README.md
/usr/share/doc/clazy/checks.json
/usr/share/doc/clazy/level0
/usr/share/doc/clazy/level0/README-connect-by-name.md
/usr/share/doc/clazy/level0/README-connect-non-signal.md
/usr/share/doc/clazy/level0/README-connect-not-normalized.md
/usr/share/doc/clazy/level0/README-container-anti-pattern.md
/usr/share/doc/clazy/level0/README-empty-qstringliteral.md
/usr/share/doc/clazy/level0/README-fully-qualified-moc-types.md
/usr/share/doc/clazy/level0/README-lambda-in-connect.md
/usr/share/doc/clazy/level0/README-lambda-unique-connection.md
/usr/share/doc/clazy/level0/README-lowercase-qml-type-name.md
/usr/share/doc/clazy/level0/README-mutable-container-key.md
/usr/share/doc/clazy/level0/README-overloaded-signal.md
/usr/share/doc/clazy/level0/README-qcolor-from-literal.md
/usr/share/doc/clazy/level0/README-qdatetime-utc.md
/usr/share/doc/clazy/level0/README-qenums.md
/usr/share/doc/clazy/level0/README-qfileinfo-exists.md
/usr/share/doc/clazy/level0/README-qgetenv.md
/usr/share/doc/clazy/level0/README-qmap-with-pointer-key.md
/usr/share/doc/clazy/level0/README-qstring-arg.md
/usr/share/doc/clazy/level0/README-qstring-comparison-to-implicit-char.md
/usr/share/doc/clazy/level0/README-qstring-insensitive-allocation.md
/usr/share/doc/clazy/level0/README-qstring-ref.md
/usr/share/doc/clazy/level0/README-qt-macros.md
/usr/share/doc/clazy/level0/README-strict-iterators.md
/usr/share/doc/clazy/level0/README-temporary-iterator.md
/usr/share/doc/clazy/level0/README-unused-non-trivial-variable.md
/usr/share/doc/clazy/level0/README-writing-to-temporary.md
/usr/share/doc/clazy/level0/README-wrong-qevent-cast.md
/usr/share/doc/clazy/level0/README-wrong-qglobalstatic.md
/usr/share/doc/clazy/level1
/usr/share/doc/clazy/level1/README-auto-unexpected-qstringbuilder.md
/usr/share/doc/clazy/level1/README-child-event-qobject-cast.md
/usr/share/doc/clazy/level1/README-connect-3arg-lambda.md
/usr/share/doc/clazy/level1/README-const-signal-or-slot.md
/usr/share/doc/clazy/level1/README-detaching-temporary.md
/usr/share/doc/clazy/level1/README-foreach.md
/usr/share/doc/clazy/level1/README-incorrect-emit.md
/usr/share/doc/clazy/level1/README-inefficient-qlist-soft.md
/usr/share/doc/clazy/level1/README-install-event-filter.md
/usr/share/doc/clazy/level1/README-non-pod-global-static.md
/usr/share/doc/clazy/level1/README-overridden-signal.md
/usr/share/doc/clazy/level1/README-post-event.md
/usr/share/doc/clazy/level1/README-qdeleteall.md
/usr/share/doc/clazy/level1/README-qhash-namespace.md
/usr/share/doc/clazy/level1/README-qlatin1string-non-ascii.md
/usr/share/doc/clazy/level1/README-qproperty-without-notify.md
/usr/share/doc/clazy/level1/README-qstring-left.md
/usr/share/doc/clazy/level1/README-range-loop.md
/usr/share/doc/clazy/level1/README-returning-data-from-temporary.md
/usr/share/doc/clazy/level1/README-rule-of-two-soft.md
/usr/share/doc/clazy/level1/README-skipped-base-method.md
/usr/share/doc/clazy/level1/README-virtual-signal.md
/usr/share/doc/clazy/level2
/usr/share/doc/clazy/level2/README-base-class-event.md
/usr/share/doc/clazy/level2/README-copyable-polymorphic.md
/usr/share/doc/clazy/level2/README-ctor-missing-parent-argument.md
/usr/share/doc/clazy/level2/README-function-args-by-ref.md
/usr/share/doc/clazy/level2/README-function-args-by-value.md
/usr/share/doc/clazy/level2/README-global-const-char-pointer.md
/usr/share/doc/clazy/level2/README-implicit-casts.md
/usr/share/doc/clazy/level2/README-missing-qobject-macro.md
/usr/share/doc/clazy/level2/README-missing-typeinfo.md
/usr/share/doc/clazy/level2/README-old-style-connect.md
/usr/share/doc/clazy/level2/README-qstring-allocations.md
/usr/share/doc/clazy/level2/README-returning-void-expression.md
/usr/share/doc/clazy/level2/README-rule-of-three.md
/usr/share/doc/clazy/level2/README-static-pmf.md
/usr/share/doc/clazy/level2/README-virtual-call-ctor.md
/usr/share/doc/clazy/manuallevel
/usr/share/doc/clazy/manuallevel/README-assert-with-side-effects.md
/usr/share/doc/clazy/manuallevel/README-container-inside-loop.md
/usr/share/doc/clazy/manuallevel/README-detaching-member.md
/usr/share/doc/clazy/manuallevel/README-heap-allocated-small-trivial-type.md
/usr/share/doc/clazy/manuallevel/README-ifndef-define-typo.md
/usr/share/doc/clazy/manuallevel/README-inefficient-qlist.md
/usr/share/doc/clazy/manuallevel/README-isempty-vs-count.md
/usr/share/doc/clazy/manuallevel/README-jni-signatures.md
/usr/share/doc/clazy/manuallevel/README-qhash-with-char-pointer-key.md
/usr/share/doc/clazy/manuallevel/README-qproperty-type-mismatch.md
/usr/share/doc/clazy/manuallevel/README-qrequiredresult-candidates.md
/usr/share/doc/clazy/manuallevel/README-qstring-varargs.md
/usr/share/doc/clazy/manuallevel/README-qt-keywords.md
/usr/share/doc/clazy/manuallevel/README-qt4-qstring-from-array.md
/usr/share/doc/clazy/manuallevel/README-qt6-deprecated-api-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-fwd-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-header-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-qhash-signature.md
/usr/share/doc/clazy/manuallevel/README-qt6-qlatin1stringchar-to-u.md
/usr/share/doc/clazy/manuallevel/README-qvariant-template-instantiation.md
/usr/share/doc/clazy/manuallevel/README-raw-environment-function.md
/usr/share/doc/clazy/manuallevel/README-reserve-candidates.md
/usr/share/doc/clazy/manuallevel/README-signal-with-return-value.md
/usr/share/doc/clazy/manuallevel/README-thread-with-slots.md
/usr/share/doc/clazy/manuallevel/README-tr-non-literal.md
/usr/share/doc/clazy/manuallevel/README-unneeded-cast.md
/usr/share/doc/clazy/manuallevel/README-use-chrono-in-qtimer.md
/usr/share/licenses/clazy
/usr/share/licenses/clazy/COPYING-LGPL2.txt
/usr/share/man/man1/clazy.1.gz
/usr/share/metainfo/org.kde.clazy.metainfo.xml

References

Summary

In this tutorial we learn how to install clazy on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).