diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-09-20 02:22:23 +0200 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-09-20 09:17:18 +0000 |
| commit | d9d4d15aef4cd198213c36d364800493d55134ec (patch) | |
| tree | da0fa131c9a23dbf5aba4bd9c4f62a8acfc2de84 /src/tools/windeployqt/utils.cpp | |
| parent | 439e19be17b9169f5786b2593e6d1ac6978bb84b (diff) | |
Compiler detection: guard =delete("reason") on Clang
Clang advertises support for =delete("reason") even in pre-C++26
language modes, however it also emits a warning if one uses it (because
it considers the feature a language extension).
I claim it's a Clang bug [1], as SD6 doesn't require language version
checks and this specific feature is useful in all language modes, so
if an implementation decides to offer it it shouldn't also warn
about it being an extension.
In any case, this commit works around the issue by disabling the
feature on pre-C++26 modes. C++26 doesn't have a __cplusplus macro to
use, so I'm just taking > C++23.
[1] https://github.com/llvm/llvm-project/issues/109311
Change-Id: If1970acb8f7df23c765ab5da747cb59b7b7a6dc7
Pick-to: 6.8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/windeployqt/utils.cpp')
0 files changed, 0 insertions, 0 deletions
