blob: cd582ceb30375190dcdef093723ac4debf9d4a28 (
plain)
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
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QObject>
#include <cplusplus/CppDocument.h>
namespace ModelEditor {
namespace Internal {
class ClassViewController :
public QObject
{
Q_OBJECT
public:
explicit ClassViewController(QObject *parent = nullptr);
~ClassViewController() = default;
QSet<QString> findClassDeclarations(const Utils::FilePath &filePath, int line = -1, int column = -1);
private:
void appendClassDeclarationsFromDocument(CPlusPlus::Document::Ptr document, int line, int column,
QSet<QString> *classNames);
void appendClassDeclarationsFromSymbol(CPlusPlus::Symbol *symbol, int line, int column, QSet<QString> *classNames);
};
} // namespace Internal
} // namespace ModelEditor
|