forked from hugopl/RubyCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RubyPlugin.h
48 lines (35 loc) · 950 Bytes
/
RubyPlugin.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 Ruby_Plugin_h
#define Ruby_Plugin_h
#include <extensionsystem/iplugin.h>
#include "editor/RubyQuickFixAssistProvider.h"
namespace Ruby {
class PluginPrivate;
class Plugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Ruby.json")
public:
Plugin();
~Plugin();
static Plugin *instance();
virtual bool initialize(const QStringList &arguments, QString *errorString) override;
virtual void extensionsInitialized() override;
QuickFixAssistProvider* quickFixProvider();
private:
void initializeToolsSettings();
static Plugin* m_instance;
PluginPrivate *d = nullptr;
#ifdef WITH_TESTS
private slots:
void cleanupTestCase();
void test_context();
void test_indentIf();
void test_indentBraces();
void test_lineCount();
void test_ifs();
void test_scanner();
void test_scanner_data();
#endif
};
}
#endif