[libc] Resolve multi-line comment error (#117636) gcc interprets a backslash '\\' as the last char before a new line as a line continuation character, even in a comment context. This can produce an "error: multi-line comment [-Werror=comment]". This removes the line continuation so that the comment can compile with gcc. GitOrigin-RevId: 4c91662a519705c2d0b6e002214a3e307f09b373
diff --git a/src/__support/common.h b/src/__support/common.h index 79803a3..42e8a79 100644 --- a/src/__support/common.h +++ b/src/__support/common.h
@@ -21,14 +21,15 @@ #define LLVM_LIBC_FUNCTION_ATTR #endif +// clang-format off // Allow each function `func` to have extra attributes specified by defining: // `LLVM_LIBC_FUNCTION_ATTR_func` macro, which should always start with // "LLVM_LIBC_EMPTY, " // // For examples: // #define LLVM_LIBC_FUNCTION_ATTR_memcpy LLVM_LIBC_EMPTY, [[gnu::weak]] -// #define LLVM_LIBC_FUNCTION_ATTR_memchr LLVM_LIBC_EMPTY, [[gnu::weak]] \ -// [[gnu::visibility("default")]] +// #define LLVM_LIBC_FUNCTION_ATTR_memchr LLVM_LIBC_EMPTY, [[gnu::weak]] [[gnu::visibility("default")]] +// clang-format on #define LLVM_LIBC_EMPTY #define GET_SECOND(first, second, ...) second