I find that __builtin_constant_p() works as expected, but
__has_builtin(constant_p) denies it !
Similarly __builtin_expect() and __builtin_types_compatible_p() !
Can I just assume these are all supported by all version of clang ?
Chris
___
cfe-user
> On Aug 9, 2019, at 05:23, Chris Hall via cfe-users
> wrote:
>
>
> I find that __builtin_constant_p() works as expected, but
> __has_builtin(constant_p) denies it !
I believe you need __has_builtin(__builtin_constant_p).
>
> Similarly __builtin_expect() and __builtin_types_compatible_p()
On 09/08/2019 15:00, Matthew Fernandez wrote:
On Aug 9, 2019, at 05:23, Chris Hall via cfe-users wrote:
I find that __builtin_constant_p() works as expected, but
__has_builtin(constant_p) denies it !
I believe you need __has_builtin(__builtin_constant_p).
Ah :-( So you do... sorry... I ha
On Fri, 9 Aug 2019 at 10:32, Chris Hall via cfe-users <
cfe-users@lists.llvm.org> wrote:
> On 09/08/2019 15:00, Matthew Fernandez wrote:
> >> On Aug 9, 2019, at 05:23, Chris Hall via cfe-users wrote:
> >>
> >> I find that __builtin_constant_p() works as expected, but
> >> __has_builtin(constant_p)
On Mon, Aug 5, 2019 at 1:36 PM David Blaikie wrote:
> Does it work with gdb?
It works with gdb. More info:
g++ & gdb -- works, even without debuginfo for libstdc++
clang++ & gdb -- works
g++ & lldb -- works
clang++ & lldb -- fails
I now notice these warnings in lldb after installing the debug
On Fri, Aug 9, 2019 at 6:03 PM Bob Eastbrook
wrote:
> On Mon, Aug 5, 2019 at 1:36 PM David Blaikie wrote:
>
> > Does it work with gdb?
>
> It works with gdb. More info:
>
> g++ & gdb -- works, even without debuginfo for libstdc++
>
^ for std::string I'd expect this. For std::fstream, I expect
> On Aug 9, 2019, at 14:58, Richard Smith via cfe-users
> wrote:
>
> On Fri, 9 Aug 2019 at 10:32, Chris Hall via cfe-users
> mailto:cfe-users@lists.llvm.org>> wrote:
> On 09/08/2019 15:00, Matthew Fernandez wrote:
> >> On Aug 9, 2019, at 05:23, Chris Hall via cfe-users wrote:
> >>
> >> I find