summaryrefslogtreecommitdiff
path: root/src/tools/clangrefactoringbackend/source/symbolindexer.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-08-02 16:00:55 +0200
committerMarco Bubke <marco.bubke@qt.io>2017-08-29 16:37:17 +0000
commit81d43b8a11e39ca7165213945b0bb0e6ef5d7980 (patch)
tree6ca2571cb983be200c2f9fcb5c7d16a83d0ad0d5 /src/tools/clangrefactoringbackend/source/symbolindexer.h
parentf0e00a8c25ff123ad23dc295ecede5736a476685 (diff)
downloadqt-creator-81d43b8a11e39ca7165213945b0bb0e6ef5d7980.tar.gz
Clang: Add symbol indexer
Change-Id: I8ff879631ae022bc870431628be002903360369c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/tools/clangrefactoringbackend/source/symbolindexer.h')
-rw-r--r--src/tools/clangrefactoringbackend/source/symbolindexer.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/tools/clangrefactoringbackend/source/symbolindexer.h b/src/tools/clangrefactoringbackend/source/symbolindexer.h
new file mode 100644
index 0000000000..625fc21c98
--- /dev/null
+++ b/src/tools/clangrefactoringbackend/source/symbolindexer.h
@@ -0,0 +1,48 @@
+/****************************************************************************
+**
+** Copyright (C) 2017 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 "symbolscollectorinterface.h"
+#include "symbolstorageinterface.h"
+
+#include <projectpartcontainerv2.h>
+
+namespace ClangBackEnd {
+
+class SymbolIndexer
+{
+public:
+ SymbolIndexer(SymbolsCollectorInterface &symbolsCollector,
+ SymbolStorageInterface &symbolStorage);
+
+ void updateProjectParts(V2::ProjectPartContainers &&projectParts);
+
+private:
+ SymbolsCollectorInterface &m_symbolsCollector;
+ SymbolStorageInterface &m_symbolStorage;
+};
+
+} // namespace ClangBackEnd