Enable bugprone-forward-declaration-namespace clang-tidy check
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 18 Aug 2020 16:15:21 +0000 (18:15 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 1 Sep 2020 06:37:03 +0000 (06:37 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
.clang-tidy
src/gui/systray.h
test/testfolderman.cpp

index 21c4d97cde0f03baf1713a04c7ea81df9071bc52..b877c6d0a6c1c2e0f860084d1ba30e4451cef0c7 100644 (file)
@@ -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,
index d4282cb86ab7d726d5419457292313e6866453b2..9e1458a13c82746181569063dabe98effc136dac 100644 (file)
@@ -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
index 6d9263db45c9c13b191152808f218d1d81945f49..89dfe3534492798606100789d7e06f81bb3b09da 100644 (file)
@@ -17,7 +17,6 @@
 #include "testhelper.h"
 
 using namespace OCC;
-class HttpCredentials;
 
 class TestFolderMan: public QObject
 {