forked from qt-creator/qt-creator
ClangFormat: Refactor indenter to allow ClangFormat unit-tests
We do not build texteditor files in unit-tests so some tricks were required to make ClangFormatIndenter available. First simple unit-test proofs it builds and runs. Change-Id: I81d5ea099bd27fd1c1ed8b5b7877299dcc62a67f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "texteditor_global.h"
|
||||
#include "blockrange.h"
|
||||
#include "indenter.h"
|
||||
#include "codeassist/assistenums.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
@@ -85,7 +86,6 @@ class CompletionSettings;
|
||||
class DisplaySettings;
|
||||
class ExtraEncodingSettings;
|
||||
class FontSettings;
|
||||
class Indenter;
|
||||
class MarginSettings;
|
||||
class StorageSettings;
|
||||
class TypingSettings;
|
||||
@@ -635,7 +635,7 @@ public:
|
||||
using DocumentCreator = std::function<TextDocument *()>;
|
||||
using EditorWidgetCreator = std::function<TextEditorWidget *()>;
|
||||
using SyntaxHighLighterCreator = std::function<SyntaxHighlighter *()>;
|
||||
using IndenterCreator = std::function<Indenter *()>;
|
||||
using IndenterCreator = std::function<Indenter *(QTextDocument *)>;
|
||||
using AutoCompleterCreator = std::function<AutoCompleter *()>;
|
||||
|
||||
void setDocumentCreator(const DocumentCreator &creator);
|
||||
|
||||
Reference in New Issue
Block a user