[cfe-commits] r136959 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Ted Kremenek
kremenek at apple.com
Thu Aug 4 23:12:28 PDT 2011
I like this name as well.
On Aug 4, 2011, at 7:11 PM, Chandler Carruth wrote:
> Author: chandlerc
> Date: Thu Aug 4 21:11:36 2011
> New Revision: 136959
>
> URL: http://llvm.org/viewvc/llvm-project?rev=136959&view=rev
> Log:
> Change the this -W flag to 'return-stack-address'.
>
> ~or~
>
> Paint the bikeshed green.
>
> Modified:
> cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
>
> Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=136959&r1=136958&r2=136959&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
> +++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Aug 4 21:11:36 2011
> @@ -4158,19 +4158,19 @@
> // CHECK: returning address/reference of stack memory
> def warn_ret_stack_addr : Warning<
> "address of stack memory associated with local variable %0 returned">,
> - InGroup<DiagGroup<"return-local-address">>;
> + InGroup<DiagGroup<"return-stack-address">>;
> def warn_ret_stack_ref : Warning<
> "reference to stack memory associated with local variable %0 returned">,
> - InGroup<DiagGroup<"return-local-address">>;
> + InGroup<DiagGroup<"return-stack-address">>;
> def warn_ret_local_temp_addr : Warning<
> "returning address of local temporary object">,
> - InGroup<DiagGroup<"return-local-address">>;
> + InGroup<DiagGroup<"return-stack-address">>;
> def warn_ret_local_temp_ref : Warning<
> "returning reference to local temporary object">,
> - InGroup<DiagGroup<"return-local-address">>;
> + InGroup<DiagGroup<"return-stack-address">>;
> def warn_ret_addr_label : Warning<
> "returning address of label, which is local">,
> - InGroup<DiagGroup<"return-local-address">>;
> + InGroup<DiagGroup<"return-stack-address">>;
> def err_ret_local_block : Error<
> "returning block that lives on the local stack">;
> def note_ref_var_local_bind : Note<
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list