You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go macros: the rule matches only //go: pragma comments, which are blanked before the rule runs (dead outside a raw string) #9429
Found by the SOP-002 gap-cell decoy work (protocol SOP-002-v1, epic #8863), batch c.
go.pymacros is ^//go:(?:generate|build|noinline|nosplit|noescape|linkname)\b (re.M). Every one of those is a // line comment, and Prism blanks line comments before the rule loop, so the rule can never see a real pragma.
Expected: macros >= 1 (contract: "a compile-time code-generation directive ... a compiler pragma -- in directive form").
Actual: 0. Also 0 for //go:noinline above a func, and with package main before it. The only input that fires the rule is a pragma-looking line inside a multi-line backtick raw string (a string, not a pragma).
Note #9343 solved the same shape for decorators by reading the raw lines in detector._go_leading_pragmas; macros has no such path. Without a fix the cell has no authentic positive control, so the decoy suite carries a strict xfail and no baseline row.
Activity
tests/decoys: SOP-002 gap-cell decoy suites for go, rust and c (Part of