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
11QT_BEGIN_NAMESPACE
12
13class Location;
14
15class PureDocParser : public CodeParser
16{
17public:
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
27private:
28 void processQdocComments(QFile& input_file, CppCodeParser& cpp_code_parser);
29};
30
31QT_END_NAMESPACE
32
33#endif
34

source code of qttools/src/qdoc/qdoc/puredocparser.h