================
@@ -2838,6 +2838,18 @@ class alignas(TypeAlignment) Type : public 
ExtQualsTypeCommonBase {
   /// immediately following this class.
   template <typename T> const T *getAs() const;
 
+  /// Look through sugar for an instance of TemplateSpecializationType which
+  /// is not a type alias.
+  const TemplateSpecializationType *
+  getAsNonAliasTemplateSpecializationType() const;
+
+  const TemplateSpecializationType *
+  castAsNonAliasTemplateSpecializationType() const {
+    auto TST = getAsNonAliasTemplateSpecializationType();
----------------
mizvekov wrote:

Luckily if you read the comment for the function just above, it says we want to 
get rid of only the getAsXXX methods **above** it, which puts this function 
unambiguously in the clear :)

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

Reply via email to