summaryrefslogtreecommitdiffstats
path: root/src/qdoc/qdoc/src/qdoc/macro.h
blob: 11e77fa297e772f93aee9dcdb419d746ce71481c (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef MACRO_H
#define MACRO_H

#include "location.h"

#include <QtCore/qmap.h>
#include <QtCore/qstring.h>

QT_BEGIN_NAMESPACE

/*!
 * Simple structure used by the Doc and DocParser classes.
 */
struct Macro
{
public:
    QString m_defaultDef {};
    Location m_defaultDefLocation {};
    QMap<QString, QString> m_otherDefs {};
    int numParams {};
};

QT_END_NAMESPACE

#endif // MACRO_H