Move statement-local warnings behind another flag
Closed this issue · 3 comments
mgehre commented
So they can be disabled separately, as requested by Richard. fyi @Xazax-hun
mgehre commented
@Xazax-hun Would you be able to move the rest of our statement-local warnings behind that flag? I'm not exactly sure about the logic yet.
Would we need to sprinkle if(IsGslPtrInitWithGslTempOwner)
around Diag(DiagLoc, diag::warn_ret_stack_addr_ref)
and other diags?
Xazax-hun commented
Yeah, unfortunately, they are not all behind the same flag, because there are some logic reused between all those warnings. I think I have something slightly different in mind.
mgehre commented
This is now partly implemented.