cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
81 lines
3.4 KiB
C++
81 lines
3.4 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
export namespace std {
|
|
#if _LIBCPP_HAS_WIDE_CHARACTERS
|
|
using std::mbstate_t _LIBCPP_USING_IF_EXISTS;
|
|
using std::size_t _LIBCPP_USING_IF_EXISTS;
|
|
using std::wint_t _LIBCPP_USING_IF_EXISTS;
|
|
|
|
using std::tm _LIBCPP_USING_IF_EXISTS;
|
|
|
|
using std::btowc _LIBCPP_USING_IF_EXISTS;
|
|
using std::fgetwc _LIBCPP_USING_IF_EXISTS;
|
|
using std::fgetws _LIBCPP_USING_IF_EXISTS;
|
|
using std::fputwc _LIBCPP_USING_IF_EXISTS;
|
|
using std::fputws _LIBCPP_USING_IF_EXISTS;
|
|
using std::fwide _LIBCPP_USING_IF_EXISTS;
|
|
using std::fwprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::fwscanf _LIBCPP_USING_IF_EXISTS;
|
|
using std::getwc _LIBCPP_USING_IF_EXISTS;
|
|
using std::getwchar _LIBCPP_USING_IF_EXISTS;
|
|
using std::putwc _LIBCPP_USING_IF_EXISTS;
|
|
using std::putwchar _LIBCPP_USING_IF_EXISTS;
|
|
using std::swprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::swscanf _LIBCPP_USING_IF_EXISTS;
|
|
using std::ungetwc _LIBCPP_USING_IF_EXISTS;
|
|
using std::vfwprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::vfwscanf _LIBCPP_USING_IF_EXISTS;
|
|
using std::vswprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::vswscanf _LIBCPP_USING_IF_EXISTS;
|
|
using std::vwprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::vwscanf _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcscat _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcschr _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcscmp _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcscoll _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcscpy _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcscspn _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsftime _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcslen _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsncat _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsncmp _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsncpy _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcspbrk _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsrchr _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsspn _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsstr _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstod _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstof _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstok _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstol _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstold _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstoll _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstoul _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcstoull _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsxfrm _LIBCPP_USING_IF_EXISTS;
|
|
using std::wctob _LIBCPP_USING_IF_EXISTS;
|
|
using std::wmemchr _LIBCPP_USING_IF_EXISTS;
|
|
using std::wmemcmp _LIBCPP_USING_IF_EXISTS;
|
|
using std::wmemcpy _LIBCPP_USING_IF_EXISTS;
|
|
using std::wmemmove _LIBCPP_USING_IF_EXISTS;
|
|
using std::wmemset _LIBCPP_USING_IF_EXISTS;
|
|
using std::wprintf _LIBCPP_USING_IF_EXISTS;
|
|
using std::wscanf _LIBCPP_USING_IF_EXISTS;
|
|
|
|
// [c.mb.wcs], multibyte / wide string and character conversion functions
|
|
using std::mbrlen _LIBCPP_USING_IF_EXISTS;
|
|
using std::mbrtowc _LIBCPP_USING_IF_EXISTS;
|
|
using std::mbsinit _LIBCPP_USING_IF_EXISTS;
|
|
using std::mbsrtowcs _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcrtomb _LIBCPP_USING_IF_EXISTS;
|
|
using std::wcsrtombs _LIBCPP_USING_IF_EXISTS;
|
|
#endif // _LIBCPP_HAS_WIDE_CHARACTERS
|
|
} // namespace std
|