mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 19:56:05 +00:00

Macros starting with alphabetic characters such as "LLVM" are in the application name space and cannot be defined or used by a conforming implementation's headers. This fixes the headers that are entirely generated, and the __llvm-libc-common.h header to use a conforming macro name for the header guard. That is, it starts with "_LLVM_LIBC_" instead of "LLVM_LIBC_", as identifiers starting with an underscore followed by a capital letter are in the name space reserved for the implementation. The remaining headers either will be fixed implicitly by removal of their custom template files, or will need to be fixed by hand.