Update comment for AdditionalMembers with a note to avoid using

additional data members in attributes as they'll leak and provide
some guidance as to where they should be allocated if necessary.

llvm-svn: 246701
This commit is contained in:
Eric Christopher 2015-09-02 20:13:41 +00:00
parent 4c3f237edb
commit 54f29bc2cd
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ class Attr {
// attribute to be applicable. If empty, no language options are required.
list<LangOpt> LangOpts = [];
// Any additional text that should be included verbatim in the class.
// Note: Any additional data members will leak and should be constructed
// externally on the ASTContext.
code AdditionalMembers = [{}];
// Any documentation that should be associated with the attribute. Since an
// attribute may be documented under multiple categories, more than one