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).
33 lines
638 B
C
33 lines
638 B
C
// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
|
|
|
|
void t1(void) __attribute__((nodebug));
|
|
|
|
void t1(void)
|
|
{
|
|
int a = 10;
|
|
a++;
|
|
}
|
|
|
|
void t2(void)
|
|
{
|
|
int b = 10;
|
|
b++;
|
|
}
|
|
|
|
// With nodebug, IR should have no llvm.dbg.* calls, or !dbg annotations.
|
|
// CHECK-LABEL: @t1
|
|
// CHECK-NOT: dbg
|
|
// CHECK: }
|
|
|
|
// Verify those things do occur normally.
|
|
// CHECK-LABEL: @t2
|
|
// CHECK: #dbg_declare
|
|
// CHECK: !dbg
|
|
// CHECK: }
|
|
|
|
// We should see a function description for t2 but not t1.
|
|
// CHECK-NOT: DISubprogram(name: "t1"
|
|
// CHECK: DISubprogram(name: "t2"
|
|
// CHECK-NOT: DISubprogram(name: "t1"
|
|
|