Skip to content

Commit 00a04dd

Browse files
committed
Add REUSE ignore comment
For those files, reuse fails to process the copyright and licensing information. The information is written to .reuse/dep5 file and reuse is told to ignore what is in the file. Task-number: QTBUG-124453 Change-Id: If593c713026d9d349055cb6e8e73500966a05d9b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
1 parent 3114e0a commit 00a04dd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/tools/qlalr/cppgenerator.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// REUSE-IgnoreStart
12
// Copyright (C) 2016 The Qt Company Ltd.
23
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
4+
// REUSE-IgnoreEnd
35

46
#include "cppgenerator.h"
57

@@ -39,14 +41,15 @@ void generateList(const QList<int> &list, QTextStream &out)
3941
}
4042

4143
}
42-
44+
// REUSE-IgnoreStart
4345
QString CppGenerator::copyrightHeader() const
4446
{
4547
return
4648
"// " QT_COPYRIGHT "\n"
4749
"// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0\n"
4850
"\n"_L1;
4951
}
52+
// REUSE-IgnoreEnd
5053

5154
QString CppGenerator::privateCopyrightHeader() const
5255
{

tests/auto/tools/moc/os9-newlines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// 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 <QObject>class Os9Newlines : public QObject{ Q_OBJECTpublic Q_SLOTS: inline void testSlot() {}};
1+
// REUSE-IgnoreStart// Copyright (C) 2016 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0// REUSE-IgnoreEnd#include <QObject>class Os9Newlines : public QObject{ Q_OBJECTpublic Q_SLOTS: inline void testSlot() {}};

util/aglfn/main.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// REUSE-IgnoreStart
12
// Copyright (C) 2016 The Qt Company Ltd.
23
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
4+
// REUSE-IgnoreEnd
35

46
#include <qbytearray.h>
57
#include <qlist.h>
@@ -120,11 +122,12 @@ static QByteArray createGlyphList()
120122
int main(int, char **)
121123
{
122124
readGlyphList();
123-
125+
// REUSE-IgnoreStart
124126
QByteArray header =
125127
"// Copyright (C) 2016 The Qt Company Ltd.\n"
126128
"// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only\n"
127129
"\n";
130+
// REUSE-IgnoreEnd
128131

129132
QByteArray note =
130133
"/* This file is autogenerated from the Adobe Glyph List database" +

0 commit comments

Comments
 (0)