Przeglądaj źródła

Enable bugprone-forward-declaration-namespace clang-tidy check

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Kevin Ottens 5 lat temu
rodzic
commit
608bf025e6
3 zmienionych plików z 1 dodań i 5 usunięć
  1. 1 0
      .clang-tidy
  2. 0 4
      src/gui/systray.h
  3. 0 1
      test/testfolderman.cpp

+ 1 - 0
.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,

+ 0 - 4
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

+ 0 - 1
test/testfolderman.cpp

@@ -17,7 +17,6 @@
 #include "testhelper.h"
 
 using namespace OCC;
-class HttpCredentials;
 
 class TestFolderMan: public QObject
 {