r345695 - Change "struct" to "class" to avoid warnings

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 5 11:00:12 PST 2018


Could you link to/quote the warnings - might be helpful to understanding
what's being addressed here

On Tue, Oct 30, 2018 at 10:00 PM Bill Wendling via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: void
> Date: Tue Oct 30 21:58:34 2018
> New Revision: 345695
>
> URL: http://llvm.org/viewvc/llvm-project?rev=345695&view=rev
> Log:
> Change "struct" to "class" to avoid warnings
>
> Modified:
>     cfe/trunk/include/clang/AST/Expr.h
>
> Modified: cfe/trunk/include/clang/AST/Expr.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=345695&r1=345694&r2=345695&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/AST/Expr.h (original)
> +++ cfe/trunk/include/clang/AST/Expr.h Tue Oct 30 21:58:34 2018
> @@ -900,7 +900,8 @@ public:
>  };
>
>  /// ConstantExpr - An expression that occurs in a constant context.
> -struct ConstantExpr : public FullExpr {
> +class ConstantExpr : public FullExpr {
> +public:
>    ConstantExpr(Expr *subexpr)
>      : FullExpr(ConstantExprClass, subexpr) {}
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181105/7f611f40/attachment.html>


More information about the cfe-commits mailing list