From: Anders Carlsson Date: Tue, 19 May 2009 04:13:11 +0000 (+0000) Subject: Add comment about FullExprArg. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4685713856cab28aeeb4afd640a8bbfb662a8b8;p=clang Add comment about FullExprArg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72098 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 4d188b53fc..95ecbecba0 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -104,6 +104,9 @@ public: class FullExprArg { public: + // FIXME: The const_cast here is ugly. RValue references would make this + // much nicer (or we could duplicate a bunch of the move semantics + // emulation code from Ownership.h). FullExprArg(const FullExprArg& Other) : Expr(move(const_cast(Other).Expr)) {}