aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.h
blob: 7aac8a57512f3d4d8adc5c3c12a6aaf9764e679c (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
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef CLANGDEBUGUTILS_H
#define CLANGDEBUGUTILS_H

#include <QtCore/qtclasshelpermacros.h>

#include <clang-c/Index.h>

#include <string_view>

QT_FORWARD_DECLARE_CLASS(QDebug)
QT_FORWARD_DECLARE_CLASS(QString)

#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug s, const CXString &cs);
QDebug operator<<(QDebug s, CXCursorKind cursorKind);
QDebug operator<<(QDebug s, CX_CXXAccessSpecifier ac);
QDebug operator<<(QDebug s, const CXType &t);
QDebug operator<<(QDebug s, const CXCursor &cursor);
QDebug operator<<(QDebug s, const CXSourceLocation &location);
QDebug operator<<(QDebug s, const std::string_view &v); // for code snippets
#endif // !QT_NO_DEBUG_STREAM

#endif // CLANGDEBUGUTILS_H