diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-30 15:10:59 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-30 15:10:59 +0300 |
commit | 4a7b005c6420adef50e4321f8ca5d11bc07763ce (patch) | |
tree | d169c1235460bfc4d3f8533268eb5c99fcb56a3b | |
parent | Fix MainWindow being out of focus when the fullscreen overlay is closed (diff) | |
download | nheko-4a7b005c6420adef50e4321f8ca5d11bc07763ce.tar.xz |
Add lint rule
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | include/Sync.h | 2 | ||||
-rw-r--r-- | include/TimelineItem.h | 2 | ||||
-rw-r--r-- | include/TimelineViewManager.h | 2 | ||||
-rw-r--r-- | src/Deserializable.cc | 3 |
5 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile index 97431093..8bf98a4b 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \)) + debug: @cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug @cmake --build build @@ -9,6 +11,9 @@ release-debug: run: @./build/nheko +lint: + @clang-format -i $(SRC) + clean: rm -rf build diff --git a/include/Sync.h b/include/Sync.h index 1db52209..6a227bcf 100644 --- a/include/Sync.h +++ b/include/Sync.h @@ -177,7 +177,7 @@ inline QMap<QString, JoinedRoom> Rooms::join() const class SyncResponse : public Deserializable { public: - void deserialize(const QJsonDocument &data) override; + void deserialize(const QJsonDocument &data) override; inline QString nextBatch() const; inline Rooms rooms() const; diff --git a/include/TimelineItem.h b/include/TimelineItem.h index 626687ac..e9f18f20 100644 --- a/include/TimelineItem.h +++ b/include/TimelineItem.h @@ -22,8 +22,8 @@ #include <QLabel> #include <QWidget> -#include "Sync.h" #include "ImageItem.h" +#include "Sync.h" class TimelineItem : public QWidget { diff --git a/include/TimelineViewManager.h b/include/TimelineViewManager.h index 1985a9a0..bb4351c4 100644 --- a/include/TimelineViewManager.h +++ b/include/TimelineViewManager.h @@ -23,10 +23,10 @@ #include <QStackedWidget> #include <QWidget> -#include "TimelineView.h" #include "MatrixClient.h" #include "RoomInfo.h" #include "Sync.h" +#include "TimelineView.h" class TimelineViewManager : public QStackedWidget { diff --git a/src/Deserializable.cc b/src/Deserializable.cc index d9cdaf0d..09d0184d 100644 --- a/src/Deserializable.cc +++ b/src/Deserializable.cc @@ -21,7 +21,8 @@ #include "Deserializable.h" -DeserializationException::DeserializationException(const std::string &msg) : msg_(msg) +DeserializationException::DeserializationException(const std::string &msg) + : msg_(msg) { } |