summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-06-06 12:14:17 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-06-07 17:14:14 +0200
commit1924f78df68d69fa7c69c394c547307e25dfffe1 (patch)
tree6df55c15f64473c68f2c02040439dec162348d2a /src/testlib/doc/snippets/code
parent1a49d7d1e032fe5e3aa829be874d5d2ccca7ce16 (diff)
QProperty: Fix source_location feature testing
The presence of the source_location header does not guarantee the availablility of std::source_location. For instance, if using clang 11 with a modern libstdc++, the source_location header is available, but std::source_location is not available as it would require __builtin_source_location, which clang does not implement. Consequently, we need to explicitly check the feature test macro instead, and only use std::(experimental::)source_location when it is defined. Task-number: QTBUG-94194 Pick-to: 6.1 Change-Id: If6fda9a1b98244b1f2944fff6fe1991def30fc0f Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions