Enea,
Committed clang revision 150001.  Let me know if that works for you.

 Chad

On Feb 7, 2012, at 12:47 AM, Enea Zaffanella <[email protected]> wrote:

> On 02/07/2012 01:10 AM, Chad Rosier wrote:
>> 
>> On Feb 5, 2012, at 1:19 PM, Enea Zaffanella<[email protected]>  wrote:
>> 
>>> On 02/05/2012 09:17 PM, Chad Rosier wrote:
>>>> Hi Enea,
>>> 
> 
> [...]
> 
>>> So, what code should we write in order to change the default mapping
> >> of a warning that is mapped by default to error
> >> (e.g., warn_return_missing_expr)?
>> 
>> Enea, You can downgrade warnings that are mapped by default to errors
>> using  the setDiagnosticGroupWarningAsError(StringRef Group, bool Enabled) 
>> API
>> (e.g., setDiagnosticGroupWarningAsError(Group, false)). Let me know if
>> this works for you. If so, I'll go ahead and update the doxygen comments.
>> 
>> Chad
> 
> Hi Chad.
> 
> This seems to be working, but having to call it on the whole diagnostic group 
> results in a somehow unflexible public interface.
> May I suggest to have another public method such as
> 
>  setDiagnosticWarningAsError(diag::kind Diag, bool)
> 
> and then have setDiagnosticGroupWarningAsError() just call the one above for 
> each diagnostics in the group?
> 
> Similarly for
>  setDiagnosticGroupErrorAsFatal (StringRef Group, bool Enabled).
> 
> Enea.

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to