virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
const ObjCPropertyDecl *OrigProp,
const ObjCCategoryDecl *ClassExt) {}
-
- /// \brief The attributes list of a declaration was updated.
- virtual void UpdatedAttributeList(const Decl *D) {}
};
} // end namespace clang
virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
const ObjCPropertyDecl *OrigProp,
const ObjCCategoryDecl *ClassExt);
- virtual void UpdatedAttributeList(const Decl *D);
};
/// \brief AST and semantic-analysis consumer that generates a
PushOnScopeChains(PDecl, TUScope);
- if (attrList) {
+ if (attrList)
ProcessDeclAttributeList(TUScope, PDecl, attrList);
- if (PrevDecl) {
- if (ASTMutationListener *L = Context.getASTMutationListener())
- L->UpdatedAttributeList(PDecl);
- }
- }
if (PrevDecl)
mergeDeclAttributes(PDecl, PrevDecl);
RewriteDecl(D);
}
-void ASTWriter::UpdatedAttributeList(const Decl *D) {
- assert(!WritingAST && "Already writing the AST!");
- if (!D->isFromASTFile())
- return; // Declaration not imported from PCH.
-
- RewriteDecl(D);
-}