Is there any particular reason why setForceEmit() is const and IsForceEmit is mutable? Diags.Report returns a mutable DiagnosticBuilder. Other than that, I guess it looks good to me.