[clazy] [Bug 355486] Qt classes false positives

via KDE Bugzilla bugzilla_noreply at kde.org
Wed Nov 18 14:23:14 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=355486

--- Comment #5 from eric.lemanissier at gmail.com ---
Thanks, but there is something I can't get right with -isystem, because I
always get warnings regarding Qt classes:

clang++-3.6 -stdlib=libc++ -std=c++14 -Qunused-arguments -Xclang -load -Xclang
../installclazy/lib/x86_64-linux-gnu/ClangLazy.so -Xclang -add-plugin -Xclang
clang-lazy -isystem../../../../Qt/5.5/gcc_64/include/QtCore (...)
-I../../../../Qt/5.5/gcc_64/include/QtCore -I. -I.
-I../../../../Qt/5.5/gcc_64/mkspecs/linux-g++ -o XXX.o XXX.cpp
In file included from XXX.cpp:2:
In file included from
../../../../Qt/5.5/gcc_64/include/QtWidgets/QHeaderView:1:
In file included from
../../../../Qt/5.5/gcc_64/include/QtWidgets/qheaderview.h:37:
In file included from
../../../../Qt/5.5/gcc_64/include/QtWidgets/qabstractitemview.h:39:
In file included from
../../../../Qt/5.5/gcc_64/include/QtCore/qitemselectionmodel.h:37:
../../../../Qt/5.5/gcc_64/include/QtCore/qset.h:46:1: warning: QSet has
copy-ctor, copy-assignment but not dtor [-Wclazy-rule-of-three]
class QSet


I am using standard qmake to generate makefiles, and then invoking clazy with
the following line:
make -k -s "CXX=clang++-3.6 -stdlib=libc++ -std=c++14 -Qunused-arguments
-Xclang -load -Xclang ../installclazy/lib/x86_64-linux-gnu/ClangLazy.so -Xclang
-add-plugin -Xclang clang-lazy -isystem$INC_PATH/QtCore -isystem$INC_PATH/QtGui
-isystem$INC_PATH/QtWidgets"

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list