================
@@ -860,6 +860,16 @@ class RedeclarableTemplateDecl : public TemplateDecl,
   /// \endcode
   bool isMemberSpecialization() const { return Common.getInt(); }
 
+  /// Determines whether any redeclaration of this template was
+  /// a specialization of a member template.
+  bool hasMemberSpecialization() const {
+    for (const auto *D : redecls()) {
+      if (D->isMemberSpecialization())
+        return true;
+    }
+    return false;
----------------
mizvekov wrote:

At least for RedeclarableTemplate, there is a common area which is shared by 
all redeclarations of a decl.
This could be implemented as a bit there, which would make sense in case the 
common area is used, thus allocated, for these users anyway.

Not required, just pointing out the possibility.

https://github.com/llvm/llvm-project/pull/111852
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to