[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith closed this revision. rsmith added a comment. Committed as r321834. Repository: rC Clang https://reviews.llvm.org/D41736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! Comment at: include/clang/AST/Attr.h:142 + /// explicitly provided in the current declaration? + bool isInheritEvenIfAlreadyPresent() const {

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. LGTM, I like the shouldInheritEvenIfAlreadyPresent name better than isInherited... FWIW. I'll let @aaron.ballman make the final call though. Repository: rC Clang https://reviews.llvm.org/D41736 ___ cfe-commits mailin

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D41736#967552, @aaron.ballman wrote: > I don't suppose there is a chance at test coverage for this change? Added Erich's test, plus a test that all instances of another attribute (`annotate`) get instantiated (the latter test failed prior to

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith updated this revision to Diff 128654. Herald added a subscriber: javed.absar. Repository: rC Clang https://reviews.llvm.org/D41736 Files: include/clang/AST/Attr.h include/clang/Basic/Attr.td lib/Sema/SemaDecl.cpp lib/Sema/SemaTemplateInstantiateDecl.cpp test/SemaTemplate/attri

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I don't suppose there is a chance at test coverage for this change? Comment at: include/clang/AST/Attr.h:142 + /// explicitly provided in the current declaration? + bool isInheritEvenIfAlreadyPresent() const { +return InheritEvenIfAlreadyPre

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Presumably this didn't break any tests, so I'm Ok with it. The initial patch was to make sure that template specializations could clear certain attributes, so I think this properly gets that done. The below test was apparently missed in the initial patch (and was t

[PATCH] D41736: make attribute instantiation instantiate all attributes

2018-01-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith created this revision. rsmith added reviewers: aaron.ballman, erichkeane. rsmith added a project: clang. Herald added a subscriber: sanjoy. Attribute instantiation would previously default to instantiating each kind of attribute only once. This was overridden by a flag whose intended purpo