summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/token.cpp
blob: bfefaff57bb6449436e7868bcbb4f835bcdd753a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "token.h"

QT_BEGIN_NAMESPACE

#if defined(DEBUG_MOC)
const char *tokenTypeName(Token t)
{
    switch (t) {
#define CREATE_CASE(Name) case Name: return #Name;
    FOR_ALL_TOKENS(CREATE_CASE)
#undef CREATE_CASE
    }
    return "";
}
#endif

QT_END_NAMESPACE