Issue 243983
Summary [Clang] Document that C library ‘builtins’ aren’t actually built-in
Labels documentation, clang
Assignees
Reporter Sirraide
    We have a number of ‘builtins’ (e.g. `__builtin_abort()`) that aren’t actually built-in but instead just call the corresponding C standard library function w/o the `__builtin_`. This has caused some confusion as users might reasonably assume that a ‘builtin’ really is built-in to the compiler and not just effectively a convoluted way to write a function call.

We should document this similarly to how GCC does it (https://gcc.gnu.org/onlinedocs/gcc/Library-Builtins.html#Builtins-for-C-Library-Functions); it would also be nice to just have a documentation page that lists all of our builtins, but that’d likely be a lot more work.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to