diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2017-08-03 16:43:38 +0200 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2017-09-15 14:14:01 +0000 |
commit | a137b08eaa90028c5c0da6a5d880c57caec7dbf2 (patch) | |
tree | deefff71cf65cd2a063c4baadaa8da938c41dfe4 /src/plugins/clangcodemodel/clangfollowsymbol.h | |
parent | 76d12dc2d5c604205f0c19848511980c361d2bae (diff) | |
download | qt-creator-a137b08eaa90028c5c0da6a5d880c57caec7dbf2.tar.gz |
CppEditor: refactor FollowSymbol
Create an interface to get the ability to use
another FollowSymbol implementation
Change-Id: I5802f62523ff3ee47b8a14e487adf43edcb6c9b1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangfollowsymbol.h')
-rw-r--r-- | src/plugins/clangcodemodel/clangfollowsymbol.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangfollowsymbol.h b/src/plugins/clangcodemodel/clangfollowsymbol.h new file mode 100644 index 0000000000..5dcf5d389d --- /dev/null +++ b/src/plugins/clangcodemodel/clangfollowsymbol.h @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** 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 <cpptools/followsymbolinterface.h> + +namespace ClangCodeModel { +namespace Internal { + +class ClangFollowSymbol : public CppTools::FollowSymbolInterface +{ +public: + Link findLink(const CppTools::CursorInEditor &data, + bool resolveTarget, + const CPlusPlus::Snapshot &, + const CPlusPlus::Document::Ptr &, + CppTools::SymbolFinder *, + bool) override; +}; + +} // namespace Internal +} // namespace ClangCodeModel |