From 5e77d76c953d915bfbbdc8c719e91e6fbc32e1f1 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 16 Apr 2013 07:28:30 +0000 Subject: Basic support for Microsoft property declarations and references thereto. Patch by Tong Shen! llvm-svn: 179585 --- clang/lib/AST/Decl.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'clang/lib/AST/Decl.cpp') diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 9505d299ab1..36044826e83 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -1293,7 +1293,7 @@ bool NamedDecl::isCXXInstanceMember() const { if (isa(D)) D = cast(D)->getTargetDecl(); - if (isa(D) || isa(D)) + if (isa(D) || isa(D) || isa(D)) return true; if (isa(D)) return cast(D)->isInstance(); @@ -3226,6 +3226,14 @@ BlockDecl *BlockDecl::CreateDeserialized(ASTContext &C, unsigned ID) { return new (Mem) BlockDecl(0, SourceLocation()); } +MSPropertyDecl *MSPropertyDecl::CreateDeserialized(ASTContext &C, + unsigned ID) { + void *Mem = AllocateDeserializedDecl(C, ID, sizeof(MSPropertyDecl)); + return new (Mem) MSPropertyDecl(0, SourceLocation(), DeclarationName(), + QualType(), 0, SourceLocation(), + 0, 0); +} + EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, SourceLocation L, IdentifierInfo *Id, QualType T, -- cgit v1.2.3