[libc] Fix more inline definitions
authorRoland McGrath <mcgrathr@google.com>
Fri, 30 Jun 2023 20:20:22 +0000 (13:20 -0700)
committerRoland McGrath <mcgrathr@google.com>
Fri, 30 Jun 2023 21:46:25 +0000 (14:46 -0700)
commit5bf8efd269f8b75b5be40f087f231d71f744885c
tree3b22f1f5d46e9bf8587bdfcee8b256b76a004f36
parent2c37cbef5821ae80a62c9eb7ecebd9ec25801c38
[libc] Fix more inline definitions

Fix a bunch more instances of incorrect use of the `static`
keyword and missing use of LIBC_INLINE and LIBC_INLINE_VAR
macros. Note that even forward declarations and generic template
declarations must follow the prescribed patterns for libc code so
that they match every definition, all template specializations.

Reviewed By: Caslyn

Differential Revision: https://reviews.llvm.org/D154260
24 files changed:
libc/src/__support/CPP/optional.h
libc/src/__support/CPP/span.h
libc/src/__support/CPP/string_view.h
libc/src/__support/CPP/type_traits.h
libc/src/__support/StringUtil/tables/linux_extension_signals.h
libc/src/__support/StringUtil/tables/linux_platform_errors.h
libc/src/__support/StringUtil/tables/linux_platform_signals.h
libc/src/__support/StringUtil/tables/minimal_platform_errors.h
libc/src/__support/StringUtil/tables/minimal_platform_signals.h
libc/src/__support/StringUtil/tables/posix_errors.h
libc/src/__support/StringUtil/tables/posix_signals.h
libc/src/__support/StringUtil/tables/signal_table.h
libc/src/__support/StringUtil/tables/stdc_errors.h
libc/src/__support/StringUtil/tables/stdc_signals.h
libc/src/__support/UInt.h
libc/src/__support/threads/linux/thread.cpp
libc/src/stdio/printf_core/write_int_converter.h
libc/src/string/memory_utils/op_aarch64.h
libc/src/string/memory_utils/op_generic.h
libc/src/string/memory_utils/op_x86.h
libc/src/string/memory_utils/strcmp_implementations.h
libc/src/string/memory_utils/strstr_implementations.h
libc/src/string/memory_utils/utils.h
libc/src/string/string_utils.h