forked from alpha0010/ClangLib
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathclangdiagnostics.h
49 lines (34 loc) · 1.06 KB
/
clangdiagnostics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef CLANGDIAGNOSTICS_H
#define CLANGDIAGNOSTICS_H
#include <cbplugin.h>
#include <wx/timer.h>
#include "clangpluginapi.h"
class ClangDiagnostics : public ClangPluginComponent
{
public:
ClangDiagnostics();
virtual ~ClangDiagnostics();
static const wxString SettingName;
void OnAttach(IClangPlugin* pClangPlugin);
void OnRelease(IClangPlugin* pClangPlugin);
void BuildMenu(wxMenuBar* menuBar);
void OnIdle( wxIdleEvent& event );
public: // Command handlers
void OnGotoNextDiagnostic(wxCommandEvent& WXUNUSED(event));
void OnGotoPrevDiagnostic(wxCommandEvent& WXUNUSED(event));
public: // Code::Blocks events
void OnEditorActivate(CodeBlocksEvent& event);
void OnEditorClose(CodeBlocksEvent& event);
public: // Clang events
void OnDiagnosticsUpdated(ClangEvent& event);
public:
ClTranslUnitId GetCurrentTranslationUnitId();
private:
ClTranslUnitId m_TranslUnitId;
int m_EditorHookId;
std::vector<ClDiagnostic> m_Diagnostics;
bool m_bShowInline;
bool m_bShowWarning;
bool m_bShowError;
};
#endif