mirror of https://github.com/PCSX2/pcsx2.git
Debugger: more clang-tidy
This commit is contained in:
parent
f873e3b630
commit
7fd40f094a
|
@ -34,6 +34,7 @@ public:
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
wxDECLARE_EVENT_TABLE();
|
wxDECLARE_EVENT_TABLE();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void sizeEvent(wxSizeEvent& evt);
|
void sizeEvent(wxSizeEvent& evt);
|
||||||
void keydownEvent(wxKeyEvent& evt);
|
void keydownEvent(wxKeyEvent& evt);
|
||||||
|
@ -41,7 +42,7 @@ protected:
|
||||||
void mouseEvent(wxMouseEvent& evt);
|
void mouseEvent(wxMouseEvent& evt);
|
||||||
void listEvent(wxListEvent& evt);
|
void listEvent(wxListEvent& evt);
|
||||||
|
|
||||||
virtual wxString getColumnText(int row, int col) const = 0;
|
[[nodiscard]] virtual wxString getColumnText(int row, int col) const = 0;
|
||||||
virtual int getRowCount() = 0;
|
virtual int getRowCount() = 0;
|
||||||
virtual void onDoubleClick(int itemIndex, const wxPoint& point){};
|
virtual void onDoubleClick(int itemIndex, const wxPoint& point){};
|
||||||
virtual void onRightClick(int itemIndex, const wxPoint& point){};
|
virtual void onRightClick(int itemIndex, const wxPoint& point){};
|
||||||
|
@ -60,7 +61,7 @@ private:
|
||||||
void insertColumns(GenericListViewColumn* columns, int count);
|
void insertColumns(GenericListViewColumn* columns, int count);
|
||||||
void resizeColumn(int col, int width);
|
void resizeColumn(int col, int width);
|
||||||
void resizeColumns(int totalWidth);
|
void resizeColumns(int totalWidth);
|
||||||
wxString OnGetItemText(long item, long col) const;
|
[[nodiscard]] wxString OnGetItemText(long item, long col) const override;
|
||||||
|
|
||||||
GenericListViewColumn* columns;
|
GenericListViewColumn* columns;
|
||||||
wxPoint clickPos;
|
wxPoint clickPos;
|
||||||
|
@ -72,14 +73,16 @@ class BreakpointList: public GenericListView
|
||||||
public:
|
public:
|
||||||
BreakpointList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly);
|
BreakpointList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly);
|
||||||
void reloadBreakpoints();
|
void reloadBreakpoints();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void onPopupClick(wxCommandEvent& evt);
|
void onPopupClick(wxCommandEvent& evt);
|
||||||
|
|
||||||
virtual wxString getColumnText(int row, int col) const;
|
[[nodiscard]] wxString getColumnText(int row, int col) const override;
|
||||||
virtual int getRowCount();
|
int getRowCount() override;
|
||||||
virtual void onDoubleClick(int itemIndex, const wxPoint& point);
|
void onDoubleClick(int itemIndex, const wxPoint& point) override;
|
||||||
virtual void onRightClick(int itemIndex, const wxPoint& point);
|
void onRightClick(int itemIndex, const wxPoint& point) override;
|
||||||
virtual void onKeyDown(int key);
|
void onKeyDown(int key) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int getBreakpointIndex(int itemIndex, bool& isMemory) const;
|
int getBreakpointIndex(int itemIndex, bool& isMemory) const;
|
||||||
int getTotalBreakpointCount();
|
int getTotalBreakpointCount();
|
||||||
|
@ -101,12 +104,14 @@ public:
|
||||||
ThreadList(wxWindow* parent, DebugInterface* _cpu);
|
ThreadList(wxWindow* parent, DebugInterface* _cpu);
|
||||||
void reloadThreads();
|
void reloadThreads();
|
||||||
EEThread getRunningThread();
|
EEThread getRunningThread();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void onPopupClick(wxCommandEvent& evt);
|
void onPopupClick(wxCommandEvent& evt);
|
||||||
|
|
||||||
virtual wxString getColumnText(int row, int col) const;
|
[[nodiscard]] wxString getColumnText(int row, int col) const override;
|
||||||
virtual int getRowCount();
|
int getRowCount() override;
|
||||||
virtual void onDoubleClick(int itemIndex, const wxPoint& point);
|
void onDoubleClick(int itemIndex, const wxPoint& point) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DebugInterface* cpu;
|
DebugInterface* cpu;
|
||||||
std::vector<EEThread> threads;
|
std::vector<EEThread> threads;
|
||||||
|
@ -117,12 +122,14 @@ class StackFramesList: public GenericListView
|
||||||
public:
|
public:
|
||||||
StackFramesList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly);
|
StackFramesList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly);
|
||||||
void loadStackFrames(EEThread& currentThread);
|
void loadStackFrames(EEThread& currentThread);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void onPopupClick(wxCommandEvent& evt);
|
void onPopupClick(wxCommandEvent& evt);
|
||||||
|
|
||||||
virtual wxString getColumnText(int row, int col) const;
|
[[nodiscard]] wxString getColumnText(int row, int col) const override;
|
||||||
virtual int getRowCount();
|
int getRowCount() override;
|
||||||
virtual void onDoubleClick(int itemIndex, const wxPoint& point);
|
void onDoubleClick(int itemIndex, const wxPoint& point) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DebugInterface* cpu;
|
DebugInterface* cpu;
|
||||||
CtrlDisassemblyView* disassembly;
|
CtrlDisassemblyView* disassembly;
|
||||||
|
|
Loading…
Reference in New Issue