mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Update to new clazy warnings.
This commit is contained in:
@@ -41,11 +41,11 @@ gcc {
|
||||
# clazy - Qt-aware linter
|
||||
equals(QMAKE_CXX, clazy)|equals(QMAKE_CXX, clazy-cl) {
|
||||
CLAZY_WARNINGS *= level3 no-reserve-candidates
|
||||
CLAZY_WARNINGS *= isempty-vs-count raw-environment-function tr-non-literal
|
||||
|
||||
# TODO: gradually fix issues so we can re-enable some of these warnings
|
||||
CLAZY_WARNINGS *= no-inefficient-qlist-soft no-qstring-allocations
|
||||
CLAZY_WARNINGS *= no-missing-qobject-macro no-ctor-missing-parent-argument
|
||||
CLAZY_WARNINGS *= no-copyable-polymorphic no-function-args-by-value
|
||||
CLAZY_WARNINGS *= no-qstring-allocations no-copyable-polymorphic no-function-args-by-value
|
||||
CLAZY_WARNINGS *= no-inefficient-qlist-soft no-ctor-missing-parent-argument
|
||||
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Xclang -plugin-arg-clang-lazy -Xclang $$join(CLAZY_WARNINGS, ",")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user