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

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 30 21:58:34 PDT 2018


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) {}
 




More information about the cfe-commits mailing list