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 : public CodeParser |
16 | { |
17 | public: |
18 | PureDocParser() = default; |
19 | ~PureDocParser() override = default; |
20 | |
21 | void initializeParser() override {} |
22 | QString language() override { return ""; } |
23 | |
24 | QStringList sourceFileNameFilter() override; |
25 | void parseSourceFile(const Location &location, const QString &filePath, CppCodeParser& cpp_code_parser) override; |
26 | |
27 | private: |
28 | void processQdocComments(QFile& input_file, CppCodeParser& cpp_code_parser); |
29 | }; |
30 | |
31 | QT_END_NAMESPACE |
32 | |
33 | #endif |
34 |