r193936 - Fix typo in err_flexible_array_empty_aggregate

David Blaikie dblaikie at gmail.com
Sat Nov 2 20:50:58 PDT 2013


Test case, maybe? You can test this with expected-error-re to add a $ to
the end of the expected diagnostic string to ensure it doesn't have
trailing text, for example.


On Sat, Nov 2, 2013 at 5:16 PM, David Majnemer <david.majnemer at gmail.com>wrote:

> Author: majnemer
> Date: Sat Nov  2 19:16:44 2013
> New Revision: 193936
>
> URL: http://llvm.org/viewvc/llvm-project?rev=193936&view=rev
> Log:
> Fix typo in err_flexible_array_empty_aggregate
>
> 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=193936&r1=193935&r2=193936&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
> +++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Sat Nov  2
> 19:16:44 2013
> @@ -3942,7 +3942,7 @@ def err_flexible_array_virtual_base : Er
>    "%select{struct|interface|union|class|enum}1 which has a virtual base
> class">;
>  def err_flexible_array_empty_aggregate : Error<
>    "flexible array member %0 not allowed in otherwise empty "
> -  "%select{struct|interface|union|class|enum}1 is not allowed">;
> +  "%select{struct|interface|union|class|enum}1">;
>  def err_flexible_array_has_nonpod_type : Error<
>    "flexible array member %0 of non-POD element type %1">;
>  def ext_flexible_array_in_struct : Extension<
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131102/321308cf/attachment.html>


More information about the cfe-commits mailing list