fix: allocating C++ compound literal on heap with Clang
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 6 Dec 2021 20:05:59 +0000 (15:05 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Dec 2021 16:26:56 +0000 (11:26 -0500)
commit7850c5cc9c0ff172bff3798c55f3d17bebf7c6ce
treed2ceb295abaf31e62d1a26aa26d894de17f3b629
parente0ca901df9ff4742dfcaf1c8839f042760197555
fix: allocating C++ compound literal on heap with Clang

Exclude Clang from the GCC version macro check for <= 4.8 since most
versions of Clang seem to identify themselves as GCC 4.2 which in this
case forces the allocation of C++ compound literals on the heap which
is only supported starting with Clang >= 6.0.

The macro was also broken for GCC <= 4.8 in C mode, add missing
parentheses around the 'or' statement to properly distinguish between C
and C++.

Also document the minimal supported version of Clang 4.0 to build C++
probe providers.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I62eea00381b7dc5958a09b13044ad9e7f7caf2ab
README.md
include/lttng/ust-compiler.h
This page took 0.027742 seconds and 4 git commands to generate.