]> granicus.if.org Git - clang/commitdiff
Add comment about FullExprArg.
authorAnders Carlsson <andersca@mac.com>
Tue, 19 May 2009 04:13:11 +0000 (04:13 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 19 May 2009 04:13:11 +0000 (04:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72098 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Action.h

index 4d188b53fcb13f97f7f7f23629b64554a7fd7d5b..95ecbecba012b433e2cd41f1c886af0ba8c7ff3b 100644 (file)
@@ -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<FullExprArg&>(Other).Expr)) {}