From: Axel Naumann Date: Wed, 20 Aug 2014 10:27:29 +0000 (+0200) Subject: interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp X-Git-Tag: v6-02-00-rc1~353 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=4d81523a32cc528aa5402b2a5050e69a23ce4ef0 interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp #include definition of new[] with ASTCtx placement. --- diff --git a/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp b/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp index b04ab3f..e492ca0 100644 --- a/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp +++ b/interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp @@ -12,6 +12,7 @@ #include "cling/Interpreter/Transaction.h" #include "clang/AST/DeclVisitor.h" +#include "clang/AST/ASTContext.h" using namespace clang; @@ -30,8 +31,7 @@ namespace cling { StringRef str = ED->getAttr()->getAnnotation(); char ch = str.back(); str.drop_back(2); - // Missing new[](...) - see clang bug # {yet to come}. - // ED->getAttr()->setAnnotation(ED->getASTContext(), str); + ED->getAttr()->setAnnotation(ED->getASTContext(), str); struct EnumDeclDerived: public EnumDecl { static void setFixed(EnumDecl* ED, bool value = true) { ((EnumDeclDerived*)ED)->IsFixed = value;