diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/codesniphelpers.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/codesniphelpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/codesniphelpers.h b/sources/shiboken6/ApiExtractor/codesniphelpers.h new file mode 100644 index 000000000..e7a7545da --- /dev/null +++ b/sources/shiboken6/ApiExtractor/codesniphelpers.h @@ -0,0 +1,17 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#ifndef CODESNIPHELPERS_H +#define CODESNIPHELPERS_H + +#include <QtCore/QString> + +class CodeSnipHelpers +{ +public: + static QString fixSpaces(QString code); + static QString dedent(const QString &code); + static void prependCode(QString *code, QString firstLine); +}; + +#endif // CODESNIPHELPERS_H |