mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Add lint rule
This commit is contained in:
parent
e6fd80f87f
commit
4a7b005c64
5 changed files with 10 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
||||||
@cmake --build build
|
@cmake --build build
|
||||||
|
@ -9,6 +11,9 @@ release-debug:
|
||||||
run:
|
run:
|
||||||
@./build/nheko
|
@./build/nheko
|
||||||
|
|
||||||
|
lint:
|
||||||
|
@clang-format -i $(SRC)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include "Sync.h"
|
|
||||||
#include "ImageItem.h"
|
#include "ImageItem.h"
|
||||||
|
#include "Sync.h"
|
||||||
|
|
||||||
class TimelineItem : public QWidget
|
class TimelineItem : public QWidget
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include "TimelineView.h"
|
|
||||||
#include "MatrixClient.h"
|
#include "MatrixClient.h"
|
||||||
#include "RoomInfo.h"
|
#include "RoomInfo.h"
|
||||||
#include "Sync.h"
|
#include "Sync.h"
|
||||||
|
#include "TimelineView.h"
|
||||||
|
|
||||||
class TimelineViewManager : public QStackedWidget
|
class TimelineViewManager : public QStackedWidget
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
|
|
||||||
#include "Deserializable.h"
|
#include "Deserializable.h"
|
||||||
|
|
||||||
DeserializationException::DeserializationException(const std::string &msg) : msg_(msg)
|
DeserializationException::DeserializationException(const std::string &msg)
|
||||||
|
: msg_(msg)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue