Changeset View
Changeset View
Standalone View
Standalone View
addons/backtracebrowser/btparser.h
Show All 29 Lines | 28 | enum Type { | |||
---|---|---|---|---|---|
30 | Lib, | 30 | Lib, | ||
31 | Unknown, | 31 | Unknown, | ||
32 | Invalid | 32 | Invalid | ||
33 | }; | 33 | }; | ||
34 | 34 | | |||
35 | /** | 35 | /** | ||
36 | * Default constructor => invalid element | 36 | * Default constructor => invalid element | ||
37 | */ | 37 | */ | ||
38 | BtInfo() | 38 | BtInfo() = default; | ||
39 | : step(-1) | | |||
40 | , line(-1) | | |||
41 | , type(Invalid) { | | |||
42 | } | | |||
43 | 39 | | |||
44 | public: | 40 | public: | ||
45 | QString original; | 41 | QString original; | ||
46 | QString filename; | 42 | QString filename; | ||
47 | QString function; | 43 | QString function; | ||
48 | QString address; | 44 | QString address; | ||
49 | int step; | 45 | int step = -1; | ||
50 | int line; | 46 | int line = -1; | ||
51 | 47 | | |||
52 | Type type; | 48 | Type type = Invalid; | ||
53 | }; | 49 | }; | ||
54 | 50 | | |||
55 | namespace KateBtParser | 51 | namespace KateBtParser | ||
56 | { | 52 | { | ||
57 | 53 | | |||
58 | QList<BtInfo> parseBacktrace(const QString &bt); | 54 | QList<BtInfo> parseBacktrace(const QString &bt); | ||
59 | 55 | | |||
60 | } | 56 | } | ||
61 | 57 | | |||
62 | #endif //BTPARSER_H | 58 | #endif //BTPARSER_H | ||
63 | 59 | | |||
64 | // kate: space-indent on; indent-width 4; replace-tabs on; | 60 | // kate: space-indent on; indent-width 4; replace-tabs on; |