From: Kevin Ottens Date: Tue, 18 Aug 2020 16:15:21 +0000 (+0200) Subject: Enable bugprone-forward-declaration-namespace clang-tidy check X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~195^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=608bf025e6f6bd34266a47b0c92273dd8fbccba9;p=nextcloud-desktop.git Enable bugprone-forward-declaration-namespace clang-tidy check Signed-off-by: Kevin Ottens --- diff --git a/.clang-tidy b/.clang-tidy index 21c4d97cd..b877c6d0a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,7 @@ Checks: '-*, bugprone-argument-comment, bugprone-branch-clone, + bugprone-forward-declaration-namespace, cppcoreguidelines-init-variables, misc-*, -misc-non-private-member-variables-in-classes, diff --git a/src/gui/systray.h b/src/gui/systray.h index d4282cb86..9e1458a13 100644 --- a/src/gui/systray.h +++ b/src/gui/systray.h @@ -31,10 +31,6 @@ bool canOsXSendUserNotification(); void sendOsXUserNotification(const QString &title, const QString &message); #endif -namespace Ui { - class Systray; -} - /** * @brief The Systray class * @ingroup gui diff --git a/test/testfolderman.cpp b/test/testfolderman.cpp index 6d9263db4..89dfe3534 100644 --- a/test/testfolderman.cpp +++ b/test/testfolderman.cpp @@ -17,7 +17,6 @@ #include "testhelper.h" using namespace OCC; -class HttpCredentials; class TestFolderMan: public QObject {