Add lint rule

remotes/origin/HEAD
Konstantinos Sideris 8 years ago
parent e6fd80f87f
commit 4a7b005c64
  1. 5
      Makefile
  2. 2
      include/Sync.h
  3. 2
      include/TimelineItem.h
  4. 2
      include/TimelineViewManager.h
  5. 3
      src/Deserializable.cc

@ -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

@ -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;

@ -22,8 +22,8 @@
#include <QLabel>
#include <QWidget>
#include "Sync.h"
#include "ImageItem.h"
#include "Sync.h"
class TimelineItem : public QWidget
{

@ -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
{

@ -21,7 +21,8 @@
#include "Deserializable.h"
DeserializationException::DeserializationException(const std::string &msg) : msg_(msg)
DeserializationException::DeserializationException(const std::string &msg)
: msg_(msg)
{
}

Loading…
Cancel
Save