2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-01-17 12:49:41 +00:00
|
|
|
#ifndef BACKSLASH_NEWLINES_H
|
|
|
|
#define BACKSLASH_NEWLINES_H
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
const int blackslashNewlinesDummy = 0
|
|
|
|
|
|
|
|
#define value 0\
|
|
|
|
1
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
class BackslashNewlines : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public slots:
|
|
|
|
#if value
|
|
|
|
void works() {}
|
|
|
|
#else
|
|
|
|
void buggy() {}
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef value
|
|
|
|
|
2014-01-17 12:49:41 +00:00
|
|
|
#endif // BACKSLASH_NEWLINES_H
|
2016-05-18 06:50:53 +00:00
|
|
|
|
2020-08-21 15:22:03 +00:00
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_CLANG("-Wcomment")
|
2023-05-15 23:45:54 +00:00
|
|
|
QT_WARNING_DISABLE_GCC("-Wcomment")
|
2020-08-21 15:22:03 +00:00
|
|
|
|
|
|
|
// ends with \\\r should not make moc crash (QTBUG-53441) (no new lines on purpose!!) \
|
|
|
|
|
|
|
|
QT_WARNING_POP
|