interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp

#include definition of new[] with ASTCtx placement.
This commit is contained in:
Axel Naumann 2014-08-20 12:27:29 +02:00 committed by sftnight
parent cda43d3b52
commit 6f456b59d0

View File

@ -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<AnnotateAttr>()->getAnnotation();
char ch = str.back();
str.drop_back(2);
// Missing new[](...) - see clang bug # {yet to come}.
// ED->getAttr<AnnotateAttr>()->setAnnotation(ED->getASTContext(), str);
ED->getAttr<AnnotateAttr>()->setAnnotation(ED->getASTContext(), str);
struct EnumDeclDerived: public EnumDecl {
static void setFixed(EnumDecl* ED, bool value = true) {
((EnumDeclDerived*)ED)->IsFixed = value;