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
16{
17public:
18 PureDocParser(const Location& location) : location{location} {}
19
20 std::vector<UntiedDocumentation> parse_qdoc_file(const QString& filePath);
21
22private:
23 std::vector<UntiedDocumentation> processQdocComments(QFile& input_file);
24
25private:
26 const Location& location;
27};
28
29QT_END_NAMESPACE
30
31#endif
32

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