https://github.com/philnik777 commented:
> TBH I find it somewhat confusing to have a severity in `diagnose_if` and an 
> existing diagnostic group, which already has its own severity.

Diagnostic groups don't have severity. Individual diagnostics have severity. 
This just exposes the same semantics as the tablegen files. i.e. you specify a 
default and if that default is overridden by the command line or pragmas that 
severity is used instead. I'm not sure where the confusion is.


https://github.com/llvm/llvm-project/pull/119712
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to