| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef PUREDOCPARSER_H |
| 5 | #define PUREDOCPARSER_H |
| 6 | |
| 7 | #include "cppcodeparser.h" |
| 8 | |
| 9 | #include <QtCore/QFile> |
| 10 | |
| 11 | QT_BEGIN_NAMESPACE |
| 12 | |
| 13 | class Location; |
| 14 | |
| 15 | class PureDocParser |
| 16 | { |
| 17 | public: |
| 18 | PureDocParser(const Location& location) : location{location} {} |
| 19 | |
| 20 | std::vector<UntiedDocumentation> parse_qdoc_file(const QString& filePath); |
| 21 | |
| 22 | private: |
| 23 | std::vector<UntiedDocumentation> processQdocComments(QFile& input_file); |
| 24 | |
| 25 | private: |
| 26 | const Location& location; |
| 27 | }; |
| 28 | |
| 29 | QT_END_NAMESPACE |
| 30 | |
| 31 | #endif |
| 32 |
