Skip to content

Commit e30c4a9

Browse files
troopa81nyalldawson
authored andcommittedMay 9, 2022
remove clazy check lambda-in-connect
Too many false positives because QGIS use it combined with QEventLoop::exec()/quit() and so there is technically speaking no issues
1 parent ec33997 commit e30c4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ if (WITH_CORE)
874874
if (ADD_CLAZY_CHECKS)
875875
set(CMAKE_CXX_BASE_FLAGS "${CMAKE_CXX_FLAGS}")
876876
# qcolor-from-literal crashes clang with clazy 1.11
877-
set(CLAZY_BASE_CHECKS "connect-3arg-lambda,lambda-unique-connection,empty-qstringliteral,fully-qualified-moc-types,lambda-in-connect,lowercase-qml-type-name,qfileinfo-exists,qmap-with-pointer-key,unused-non-trivial-variable,overridden-signal,qdeleteall,qstring-left,skipped-base-method,isempty-vs-count")
877+
set(CLAZY_BASE_CHECKS "connect-3arg-lambda,lambda-unique-connection,empty-qstringliteral,fully-qualified-moc-types,lowercase-qml-type-name,qfileinfo-exists,qmap-with-pointer-key,unused-non-trivial-variable,overridden-signal,qdeleteall,qstring-left,skipped-base-method,isempty-vs-count")
878878
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_BASE_FLAGS} -Xclang -plugin-arg-clazy -Xclang ${CLAZY_BASE_CHECKS}")
879879
endif()
880880
endif()

0 commit comments

Comments
 (0)
Please sign in to comment.