================
@@ -227,6 +238,12 @@ const auto nonConstReferenceType = [] {
       referenceType(pointee(unless(isConstQualified()))));
 };
 
+const auto referenceToPointerWithNonConstPointeeType = [] {
+  return hasUnqualifiedDesugaredType(
+      referenceType(pointee(hasUnqualifiedDesugaredType(
----------------
vbvictor wrote:

Can we add `pointee(isConstQualified(), hasUnqual...)` since 
`nonConstReferenceType` already matches for `T* &` and we are targeting 
`T*const &` case

https://github.com/llvm/llvm-project/pull/190421
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to