Commit 331b5c84 authored by tcberner's avatar tcberner
Browse files

New port: devel/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.

https://github.com/kde/clazy
parent 4c25c02c
......@@ -321,6 +321,7 @@
SUBDIR += cl-trivial-gray-streams-sbcl
SUBDIR += clanlib
SUBDIR += clanlib1
SUBDIR += clazy
SUBDIR += cld2
SUBDIR += clewn
SUBDIR += clig
......
# $FreeBSD$
PORTNAME= clazy
DISTVERSION= 1.5
CATEGORIES= devel kde
MASTER_SITES= KDE/stable/${PORTNAME}/${DISTVERSION}/src/
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt oriented code checker based on clang
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING-LGPL2.txt
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
RUN_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
USES= cmake tar:xz
CMAKE_ARGS= -DLLVM_ROOT=${LOCALBASE}/llvm${LLVM_DEFAULT}
OPTIONS_DEFINE= DOCS
.include <bsd.port.mk>
TIMESTAMP = 1558796278
SHA256 (clazy-1.5.tar.xz) = 87e37aace395e31359d4258452bbf7d1bdb5eae39e21e0dc0d80a75db8b8b779
SIZE (clazy-1.5.tar.xz) = 352344
--- CMakeLists.txt.orig 2019-05-25 15:07:20 UTC
+++ CMakeLists.txt
@@ -178,7 +178,7 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION ${DOC_INSTALL_DIR})
# Build docs
- set(MAN_INSTALL_DIR "${SHARE_INSTALL_DIR}/man/man1")
+ set(MAN_INSTALL_DIR "man/man1")
add_subdirectory(docs)
# rpath
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.
WWW: https://github.com/KDE/clazy
bin/clazy
bin/clazy-standalone
lib/ClazyPlugin.so
%%PORTDOCS%%%%DOCSDIR%%/COPYING-LGPL2.txt
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/checks.json
%%PORTDOCS%%%%DOCSDIR%%/level0/README-connect-by-name.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-connect-non-signal.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-connect-not-normalized.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-container-anti-pattern.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-empty-qstringliteral.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-fully-qualified-moc-types.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-lambda-in-connect.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-lambda-unique-connection.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-lowercase-qml-type-name.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-mutable-container-key.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qcolor-from-literal.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qdatetime-utc.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qenums.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qfileinfo-exists.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qgetenv.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qmap-with-pointer-key.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qstring-arg.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qstring-insensitive-allocation.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qstring-ref.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qt-macros.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-qvariant-template-instantiation.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-strict-iterators.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-temporary-iterator.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-unused-non-trivial-variable.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-writing-to-temporary.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-wrong-qevent-cast.md
%%PORTDOCS%%%%DOCSDIR%%/level0/README-wrong-qglobalstatic.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-auto-unexpected-qstringbuilder.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-child-event-qobject-cast.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-connect-3arg-lambda.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-const-signal-or-slot.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-detaching-temporary.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-foreach.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-incorrect-emit.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-inefficient-qlist-soft.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-install-event-filter.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-non-pod-global-static.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-overridden-signal.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-post-event.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-qdeleteall.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-qhash-namespace.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-qlatin1string-non-ascii.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-qproperty-without-notify.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-qstring-left.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-range-loop.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-returning-data-from-temporary.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-rule-of-two-soft.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-skipped-base-method.md
%%PORTDOCS%%%%DOCSDIR%%/level1/README-virtual-signal.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-base-class-event.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-copyable-polymorphic.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-ctor-missing-parent-argument.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-function-args-by-ref.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-function-args-by-value.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-global-const-char-pointer.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-implicit-casts.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-missing-qobject-macro.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-missing-typeinfo.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-old-style-connect.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-qstring-allocations.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-returning-void-expression.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-rule-of-three.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-static-pmf.md
%%PORTDOCS%%%%DOCSDIR%%/level2/README-virtual-call-ctor.md
%%PORTDOCS%%%%DOCSDIR%%/level3/README-assert-with-side-effects.md
%%PORTDOCS%%%%DOCSDIR%%/level3/README-detaching-member.md
%%PORTDOCS%%%%DOCSDIR%%/level3/README-reserve-candidates.md
%%PORTDOCS%%%%DOCSDIR%%/level3/README-thread-with-slots.md
%%PORTDOCS%%%%DOCSDIR%%/level3/README-unneeded-cast.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-container-inside-loop.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-ifndef-define-typo.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-inefficient-qlist.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-isempty-vs-count.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qhash-with-char-pointer-key.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qrequiredresult-candidates.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qstring-varargs.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt-keywords.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt4-qstring-from-array.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-raw-environment-function.md
%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-tr-non-literal.md
man/man1/clazy.1.gz
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment