aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangrefactoring/editormanagerinterface.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2018-04-09 13:30:30 +0200
committerMarco Bubke <marco.bubke@qt.io>2018-04-12 13:12:24 +0000
commit4b0bcbdcb6b28e806de4ba31fa5fecd06fd9188e (patch)
tree14acb63657252b111007330cc3568ee063f3cb8e /src/plugins/clangrefactoring/editormanagerinterface.h
parent18de1e3fcf4bc2715636c8f69b29e6177bcd552b (diff)
Clang: Locator filter for the symbol database
There are no symbol queries for the locator filters. The signature generation is still not implemented but for simple cases it should work. Change-Id: Ic6b04fbe1e7e057892f194ac139615c47d6ec33f Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring/editormanagerinterface.h')
-rw-r--r--src/plugins/clangrefactoring/editormanagerinterface.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/plugins/clangrefactoring/editormanagerinterface.h b/src/plugins/clangrefactoring/editormanagerinterface.h
new file mode 100644
index 0000000000..fbb196460e
--- /dev/null
+++ b/src/plugins/clangrefactoring/editormanagerinterface.h
@@ -0,0 +1,53 @@
+/****************************************************************************
+**
+** Copyright (C) 2018 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+#include <filepathid.h>
+
+#include <utils/linecolumn.h>
+#include <utils/smallstringfwd.h>
+
+namespace Core {
+class IEditor;
+}
+
+namespace ClangRefactoring {
+
+class EditorManagerInterface
+{
+public:
+ EditorManagerInterface() = default;
+ EditorManagerInterface(const EditorManagerInterface&) = delete;
+ EditorManagerInterface &operator=(const EditorManagerInterface&) = delete;
+ EditorManagerInterface(EditorManagerInterface&&) = delete;
+ EditorManagerInterface &operator=(EditorManagerInterface&&) = delete;
+
+ virtual Core::IEditor *openEditorAt(ClangBackEnd::FilePathId filePathId, Utils::LineColumn lineColumn) = 0;
+
+protected:
+ ~EditorManagerInterface() = default;
+};
+} // namespace ClangRefactoring