Commit Graph

7 Commits

Author SHA1 Message Date
Lucie Gérard
a7956df3ca Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.

Task-number: QTBUG-67283
Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-26 12:27:18 +00:00
hjk
26f135f243 ProjectExplorer: Drop unused Macro::toByteArray(const QVector<Macros> &)
Change-Id: Ic3f0b8bda4fac1d31e2b3239e4a3ee261547b30a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-05 08:23:53 +00:00
Christian Kandeler
ef135cc549 ProjectExplorer: Fix crash
One must not call std::next() on a non-dereferenceable iterator.

Change-Id: Id40341f808a3781f91f8aef1930bb76a397e8053
Reviewed-by: hjk <hjk@qt.io>
2019-12-10 12:48:40 +00:00
Tobias Hunger
39bf2257c5 ProjectMacro: Prettify output of toByteArray
Remove a stray space in the output if the value of a #define is empty.

Change-Id: I542c092416e00276dc72e31b43215349ecf1ca64
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-20 12:40:36 +00:00
Marco Bubke
3118bdcbd8 ProjectExplorer: Convert empty macro to "KEY="
-DKEY is the same as #define KEY 1
-DKEY= is the same as #define KEY

Change-Id: I958a89d7b024999f1a623d4d309513ce342f6f8a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-20 11:51:26 +00:00
Tim Jenssen
9664f2a89c fix msvc build
error C2039: 'isspace': is not a member of 'std'

Change-Id: I92410b09c4de18d9c3c43a2f052a6b2595c92013
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-15 08:14:31 +00:00
Marco Bubke
b6e12f4a1c Convert macros from plain QByteArray to a vector of structs
The old code model expected the macros as C++ formatted text
("#define Foo 42) but newer targets like the Clang codemodel expect key
value arguments like "-DFoo=42". So instead of parsing the text again and
again we use an abstract data description.

Task-number: QTCREATORBUG-17915
Change-Id: I0179fd13c48a581e91ee79bba9d42d501c26f19f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-14 15:23:56 +00:00