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).
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
; These tests are based on clang/test/CodeGenCXX/mangle-ms-template-callback.cpp
|
|
|
|
; RUN: llvm-undname < %s | FileCheck %s
|
|
|
|
; CHECK-NOT: Invalid mangled name
|
|
|
|
?callback_void@@3V?$C@$$A6AXXZ@@A
|
|
; CHECK: class C<void __cdecl(void)> callback_void
|
|
|
|
?callback_void_volatile@@3V?$C@$$A6AXXZ@@C
|
|
; CHECK: class C<void __cdecl(void)> volatile callback_void_volatile
|
|
|
|
?callback_int@@3V?$C@$$A6AHXZ@@A
|
|
; CHECK: C<int __cdecl(void)> callback_int
|
|
|
|
?callback_Type@@3V?$C@$$A6A?AVType@@XZ@@A
|
|
; CHECK: C<class Type __cdecl(void)> callback_Type
|
|
|
|
?callback_void_int@@3V?$C@$$A6AXH@Z@@A
|
|
; CHECK: C<void __cdecl(int)> callback_void_int
|
|
|
|
?callback_int_int@@3V?$C@$$A6AHH@Z@@A
|
|
; CHECK: C<int __cdecl(int)> callback_int_int
|
|
|
|
?callback_void_Type@@3V?$C@$$A6AXVType@@@Z@@A
|
|
; CHECK: C<void __cdecl(class Type)> callback_void_Type
|
|
|
|
?foo@@YAXV?$C@$$A6AXXZ@@@Z
|
|
; CHECK: void __cdecl foo(class C<void __cdecl(void)>)
|
|
|
|
?function@@YAXV?$C@$$A6AXXZ@@@Z
|
|
; CHECK: void __cdecl function(class C<void __cdecl(void)>)
|
|
|
|
?function_pointer@@YAXV?$C@P6AXXZ@@@Z
|
|
; CHECK: void __cdecl function_pointer(class C<void (__cdecl *)(void)>)
|
|
|
|
?member_pointer@@YAXV?$C@P8Z@@AEXXZ@@@Z
|
|
; CHECK: void __cdecl member_pointer(class C<void (__thiscall Z::*)(void)>)
|
|
|
|
??$bar@P6AHH@Z@@YAXP6AHH@Z@Z
|
|
; CHECK: void __cdecl bar<int (__cdecl *)(int)>(int (__cdecl *)(int))
|
|
|
|
??$WrapFnPtr@$1?VoidFn@@YAXXZ@@YAXXZ
|
|
; CHECK: void __cdecl WrapFnPtr<&void __cdecl VoidFn(void)>(void)
|
|
|
|
??$WrapFnRef@$1?VoidFn@@YAXXZ@@YAXXZ
|
|
; CHECK: void __cdecl WrapFnRef<&void __cdecl VoidFn(void)>(void)
|
|
|
|
??$WrapFnPtr@$1?VoidStaticMethod@Thing@@SAXXZ@@YAXXZ
|
|
; CHECK: void __cdecl WrapFnPtr<&public: static void __cdecl Thing::VoidStaticMethod(void)>(void)
|
|
|
|
??$WrapFnRef@$1?VoidStaticMethod@Thing@@SAXXZ@@YAXXZ
|
|
; CHECK: void __cdecl WrapFnRef<&public: static void __cdecl Thing::VoidStaticMethod(void)>(void)
|