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
Add capability to fully suppress a warning group and have warnings default-escalate to errors
- Adds '-Wsuppress <group>' flag which can be used to fully supress emission of warning diagnostics belonging to the specified group.
- Adds 'DefaultEscalate' flag which can be used on grouped warning diagnostics in order to have them escalated to errors by-default. They can still be downgraded back to warnings with '-Wwarning'.
// CHECK: error: Performance: 'foo()' returns an array, leading to implicit copies. Consider using an 'inout' parameter instead. [#PerfHintReturnTypeImplicitCopy]
15
+
// CHECK: error: Performance: closure returns an array, leading to implicit copies. Consider using an 'inout' parameter instead. [#PerfHintReturnTypeImplicitCopy]
16
+
6
17
// CHECK-WARN: warning: Performance: 'foo()' returns an array, leading to implicit copies. Consider using an 'inout' parameter instead. [#PerfHintReturnTypeImplicitCopy]
18
+
// CHECK-WARN: warning: Performance: closure returns an array, leading to implicit copies. Consider using an 'inout' parameter instead. [#PerfHintReturnTypeImplicitCopy]
0 commit comments