From: Matt Beaumont-Gay Date: Thu, 4 Aug 2011 22:35:03 +0000 (+0000) Subject: Put a few warnings into a DiagGroup. Feel free to improve the flag name! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=270f943c8547d325ad9ddd8c89a08b3a047b293d;p=clang Put a few warnings into a DiagGroup. Feel free to improve the flag name! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136937 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 236368ce3a..d6401dd7d2 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -4154,15 +4154,20 @@ def warn_scanf_scanlist_incomplete : Warning< // CHECK: returning address/reference of stack memory def warn_ret_stack_addr : Warning< - "address of stack memory associated with local variable %0 returned">; + "address of stack memory associated with local variable %0 returned">, + InGroup>; def warn_ret_stack_ref : Warning< - "reference to stack memory associated with local variable %0 returned">; + "reference to stack memory associated with local variable %0 returned">, + InGroup>; def warn_ret_local_temp_addr : Warning< - "returning address of local temporary object">; + "returning address of local temporary object">, + InGroup>; def warn_ret_local_temp_ref : Warning< - "returning reference to local temporary object">; + "returning reference to local temporary object">, + InGroup>; def warn_ret_addr_label : Warning< - "returning address of label, which is local">; + "returning address of label, which is local">, + InGroup>; def err_ret_local_block : Error< "returning block that lives on the local stack">; def note_ref_var_local_bind : Note<