<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Abramo,</div><div><br></div><div>How about adding a method to get the specializations in a vector, like the already existing:</div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></span></font></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(71, 144, 117); "><span style="color: #000000">  </span>/// \brief Retrieve the partial specializations as an ordered list.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">  <span style="color: #971365">void</span> getPartialSpecializations(</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 98, 68); "><span style="color: #000000">          llvm::</span>SmallVectorImpl<span style="color: #000000"><</span>ClassTemplatePartialSpecializationDecl<span style="color: #000000"> *> &PS);</span></div></div><div><span style="color: #000000"><br></span></div><div><br></div><div>Users of the template decls interface would not need to depend on how the specializations are stored.</div><div>For example, before I changed getSpecializations() to 'protected', the set contained the latest redeclarations but now the set contains just the canonical decls and we return the latest when the client makes a query about the specializations.</div><div><br></div><div>-Argiris</div><div><br></div><br><div><div>On Jul 27, 2010, at 12:41 PM, Abramo Bagnara wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>The following patch restores the "public" access specifier for method<br>getSpecializations() of FunctionTemplateDecl as well as methods<br>getSpecializations() and getPartialSpecializations() of ClassTemplateDecl.<br><br>They were recently downgraded to "protected", but it seems that clients<br>such as our application have no other way to query the set of all<br>specializations of a given template.<br><br><span><public-specializations.patch></span>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></div></blockquote></div><br></body></html>