[cfe-users] __builtin_constant_p(), __builtin_expect() and __builtin_types_compatible_p() and __has_builtin()

Matthew Fernandez via cfe-users cfe-users at lists.llvm.org
Fri Aug 9 07:00:17 PDT 2019


> On Aug 9, 2019, at 05:23, Chris Hall via cfe-users <cfe-users at lists.llvm.org> 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() !
> 
> Can I just assume these are all supported by all version of clang ?
> 
> Chris
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users




More information about the cfe-users mailing list