interpreter/cling/lib/Interpreter/AutoloadingTransform.cpp
#include definition of new[] with ASTCtx placement.
This commit is contained in:
parent
cda43d3b52
commit
6f456b59d0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user