summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-08-04 22:35:03 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-08-04 22:35:03 +0000
commit7f6519141cb024a290288f94916e2840600cf671 (patch)
tree55619f12e59ae3ea12ac49bfe191e470a8b77652
parent0affe0213d6864a773af0bac236fbcbf2456a8dc (diff)
downloadbcm5719-llvm-7f6519141cb024a290288f94916e2840600cf671.tar.gz
bcm5719-llvm-7f6519141cb024a290288f94916e2840600cf671.zip
Put a few warnings into a DiagGroup. Feel free to improve the flag name!
llvm-svn: 136937
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td15
1 files changed, 10 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 236368ce3ab..d6401dd7d27 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/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<DiagGroup<"return-local-address">>;
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<DiagGroup<"return-local-address">>;
def warn_ret_local_temp_addr : Warning<
- "returning address of local temporary object">;
+ "returning address of local temporary object">,
+ InGroup<DiagGroup<"return-local-address">>;
def warn_ret_local_temp_ref : Warning<
- "returning reference to local temporary object">;
+ "returning reference to local temporary object">,
+ InGroup<DiagGroup<"return-local-address">>;
def warn_ret_addr_label : Warning<
- "returning address of label, which is local">;
+ "returning address of label, which is local">,
+ InGroup<DiagGroup<"return-local-address">>;
def err_ret_local_block : Error<
"returning block that lives on the local stack">;
def note_ref_var_local_bind : Note<
OpenPOWER on IntegriCloud