Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
DrKonqi
Commits
914fee2e
Commit
914fee2e
authored
Jan 17, 2021
by
Alexander Lohnau
💬
Browse files
Prevent clang-format uglification
parent
e84d457d
Changes
11
Hide whitespace changes
Inline
Side-by-side
src/backtracegenerator.h
View file @
914fee2e
...
...
@@ -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
;
...
...
src/bugzillaintegration/libbugzilla/models/bug.h
View file @
914fee2e
...
...
@@ -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
)
...
...
src/bugzillaintegration/libbugzilla/models/bugfield.h
View file @
914fee2e
...
...
@@ -63,7 +63,7 @@ public:
SeeAlso
=
7
,
Keywords
=
8
,
Date
=
9
,
Integer
=
10
Integer
=
10
,
};
typedef
QPointer
<
BugField
>
Ptr
;
...
...
src/bugzillaintegration/parsebugbacktraces.h
View file @
914fee2e
...
...
@@ -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
);
...
...
src/bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp
View file @
914fee2e
...
...
@@ -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
);
...
...
src/bugzillaintegration/reportinterface.h
View file @
914fee2e
...
...
@@ -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
);
...
...
src/debugger.h
View file @
914fee2e
...
...
@@ -69,7 +69,7 @@ public:
enum
ExpandStringUsage
{
ExpansionUsagePlainText
,
ExpansionUsageShell
ExpansionUsageShell
,
};
static
void
expandString
(
QString
&
str
,
ExpandStringUsage
usage
=
ExpansionUsagePlainText
,
...
...
src/debugpackageinstaller.h
View file @
914fee2e
...
...
@@ -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
);
...
...
src/parser/backtraceline.h
View file @
914fee2e
...
...
@@ -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
;
...
...
src/parser/backtraceparser.h
View file @
914fee2e
...
...
@@ -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
);
...
...
src/tests/crashtest/crashtest.cpp
View file @
914fee2e
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment