Commit 914fee2e authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Prevent clang-format uglification

parent e84d457d
......@@ -22,7 +22,7 @@ class BacktraceGenerator : public QObject
Q_OBJECT
public:
enum State { NotLoaded, Loading, Loaded, Failed, FailedToStart };
enum State { NotLoaded, Loading, Loaded, Failed, FailedToStart, };
BacktraceGenerator(const Debugger & debugger, QObject *parent);
~BacktraceGenerator() override;
......
......@@ -29,7 +29,7 @@ public:
RESOLVED,
NEEDSINFO,
VERIFIED,
CLOSED
CLOSED,
};
Q_ENUM(Status)
......@@ -48,7 +48,7 @@ public:
DOWNSTREAM,
WAITINGFORINFO,
BACKTRACE,
UNMAINTAINED
UNMAINTAINED,
};
Q_ENUM(Resolution)
......
......@@ -63,7 +63,7 @@ public:
SeeAlso = 7,
Keywords = 8,
Date = 9,
Integer = 10
Integer = 10,
};
typedef QPointer<BugField> Ptr;
......
......@@ -31,7 +31,7 @@ class ParseBugBacktraces : QObject
PerfectDuplicate,//functionnames and stackframe numer match
MostLikelyDuplicate,//functionnames and stackframe numer match >=90%
MaybeDuplicate,//functionnames and stackframe numer match >=60%
NoDuplicate//functionnames and stackframe numer match <60%
NoDuplicate,//functionnames and stackframe numer match <60%
};
DuplicateRating findDuplicate(const QList<BacktraceLine> &backtrace);
......
......@@ -36,11 +36,10 @@ BugzillaDuplicatesPage::BugzillaDuplicatesPage(ReportAssistantDialog *parent)
ui.setupUi(this);
ui.information->hide();
connect(ui.m_bugListWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
this, SLOT(itemClicked(QTreeWidgetItem*,int)));
connect(ui.m_bugListWidget, &QTreeWidget::itemSelectionChanged,
this, &BugzillaDuplicatesPage::itemSelectionChanged);
// clang-format off
connect(ui.m_bugListWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(itemClicked(QTreeWidgetItem*,int)));
connect(ui.m_bugListWidget, &QTreeWidget::itemSelectionChanged, this, &BugzillaDuplicatesPage::itemSelectionChanged);
// clang-format on
QHeaderView * header = ui.m_bugListWidget->header();
header->setSectionResizeMode(0, QHeaderView::ResizeToContents);
......@@ -90,8 +89,9 @@ BugzillaDuplicatesPage::BugzillaDuplicatesPage(ReportAssistantDialog *parent)
connect(ui.m_stopSearchButton, &QAbstractButton::clicked, this, &BugzillaDuplicatesPage::stopCurrentSearch);
//Possible duplicates list and buttons
connect(ui.m_selectedDuplicatesList, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
this, SLOT(itemClicked(QListWidgetItem*)));
// clang-format off
connect(ui.m_selectedDuplicatesList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(itemClicked(QListWidgetItem*)));
// clang-format on
connect(ui.m_selectedDuplicatesList, &QListWidget::itemSelectionChanged,
this, &BugzillaDuplicatesPage::possibleDuplicateSelectionChanged);
......
......@@ -26,17 +26,17 @@ class ReportInterface : public QObject
Q_OBJECT
public:
enum Reproducible { ReproducibleUnsure, ReproducibleNever,
ReproducibleSometimes, ReproducibleEverytime };
ReproducibleSometimes, ReproducibleEverytime, };
enum class Backtrace {
Complete,
Reduced,
Exclude
Exclude,
};
enum class DrKonqiStamp {
Include,
Exclude
Exclude,
};
explicit ReportInterface(QObject *parent = nullptr);
......
......@@ -69,7 +69,7 @@ public:
enum ExpandStringUsage {
ExpansionUsagePlainText,
ExpansionUsageShell
ExpansionUsageShell,
};
static void expandString(QString & str, ExpandStringUsage usage = ExpansionUsagePlainText,
......
......@@ -19,7 +19,7 @@ class DebugPackageInstaller: public QObject
Q_OBJECT
enum Results { ResultInstalled = 0, ResultError = 1,
ResultSymbolsNotFound = 2, ResultCanceled = 3 };
ResultSymbolsNotFound = 2, ResultCanceled = 3, };
public:
explicit DebugPackageInstaller(QObject *parent = nullptr);
......
......@@ -24,7 +24,7 @@ public:
SignalHandlerStart, //line indicates the signal handler start
//(contains "<signal handler called>")
StackFrame, //line is a normal stack frame
Info //< additional information on the bt
Info, //< additional information on the bt
};
enum LineRating {
......@@ -34,7 +34,7 @@ public:
MissingLibrary = 2, // #0 0x0000dead in foobar()
MissingSourceFile = 3, // #0 0x0000dead in FooBar::FooBar () from /usr/lib/libfoobar.so.4
Good = 4, // #0 0x0000dead in FooBar::crash (this=0x0) at /home/user/foobar.cpp:204
InvalidRating = -1 // (dummy invalid value)
InvalidRating = -1, // (dummy invalid value)
};
static const LineRating BestRating = Good;
......
......@@ -18,7 +18,7 @@ class BacktraceParser : public QObject
Q_OBJECT
Q_DECLARE_PRIVATE(BacktraceParser)
public:
enum Usefulness { InvalidUsefulness, Useless, ProbablyUseless, MayBeUseful, ReallyUseful };
enum Usefulness { InvalidUsefulness, Useless, ProbablyUseless, MayBeUseful, ReallyUseful, };
Q_ENUM(Usefulness)
static BacktraceParser *newParser(const QString & debuggerName, QObject *parent = nullptr);
......
......@@ -16,7 +16,7 @@
#include <QGuiApplication>
#include <KAboutData>
enum CrashType { Crash, Malloc, Div0, Assert, QAssert, Threads, FatalErrorMessage };
enum CrashType { Crash, Malloc, Div0, Assert, QAssert, Threads, FatalErrorMessage, };
struct SomeStruct
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment