llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) <details> <summary>Changes</summary> I was hitting an unnecessary reformat in another change and it's just a minor formatting issue. --- Full diff: https://github.com/llvm/llvm-project/pull/217803.diff 1 Files Affected: - (modified) clang/include/clang/AST/Expr.h (+41-40) ``````````diff diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 112af378258fc..3a7001e210477 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/include/clang/AST/Expr.h @@ -60,51 +60,52 @@ namespace clang { class ValueDecl; class WarnUnusedResultAttr; -/// A simple array of base specifiers. -typedef SmallVector<CXXBaseSpecifier*, 4> CXXCastPath; - -/// An adjustment to be made to the temporary created when emitting a -/// reference binding, which accesses a particular subobject of that temporary. -struct SubobjectAdjustment { - enum { - DerivedToBaseAdjustment, - FieldAdjustment, - MemberPointerAdjustment - } Kind; - - struct DTB { - const CastExpr *BasePath; - const CXXRecordDecl *DerivedClass; - }; + /// A simple array of base specifiers. + typedef SmallVector<CXXBaseSpecifier *, 4> CXXCastPath; + + /// An adjustment to be made to the temporary created when emitting a + /// reference binding, which accesses a particular subobject of that + /// temporary. + struct SubobjectAdjustment { + enum { + DerivedToBaseAdjustment, + FieldAdjustment, + MemberPointerAdjustment + } Kind; + + struct DTB { + const CastExpr *BasePath; + const CXXRecordDecl *DerivedClass; + }; - struct P { - const MemberPointerType *MPT; - Expr *RHS; - }; + struct P { + const MemberPointerType *MPT; + Expr *RHS; + }; - union { - struct DTB DerivedToBase; - const FieldDecl *Field; - struct P Ptr; - }; + union { + struct DTB DerivedToBase; + const FieldDecl *Field; + struct P Ptr; + }; - SubobjectAdjustment(const CastExpr *BasePath, - const CXXRecordDecl *DerivedClass) - : Kind(DerivedToBaseAdjustment) { - DerivedToBase.BasePath = BasePath; - DerivedToBase.DerivedClass = DerivedClass; - } + SubobjectAdjustment(const CastExpr *BasePath, + const CXXRecordDecl *DerivedClass) + : Kind(DerivedToBaseAdjustment) { + DerivedToBase.BasePath = BasePath; + DerivedToBase.DerivedClass = DerivedClass; + } - SubobjectAdjustment(const FieldDecl *Field) : Kind(FieldAdjustment) { - this->Field = Field; - } + SubobjectAdjustment(const FieldDecl *Field) : Kind(FieldAdjustment) { + this->Field = Field; + } - SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) - : Kind(MemberPointerAdjustment) { - this->Ptr.MPT = MPT; - this->Ptr.RHS = RHS; - } -}; + SubobjectAdjustment(const MemberPointerType *MPT, Expr *RHS) + : Kind(MemberPointerAdjustment) { + this->Ptr.MPT = MPT; + this->Ptr.RHS = RHS; + } + }; /// This represents one expression. Note that Expr's are subclasses of Stmt. /// This allows an expression to be transparently used any place a Stmt is `````````` </details> https://github.com/llvm/llvm-project/pull/217803 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
