================
@@ -5753,3 +5753,23 @@ StringRef PredefinedSugarType::getName(Kind KD) {
   }
   llvm_unreachable("unexpected kind");
 }
+
+bool Type::isSpanLikeType() const {
----------------
a-nogikh wrote:

Hmm, yes, indeed, there are pointer+int structs that are not span-like at all.

I've moved the logic to SemaDeclAttr.cpp and added a note in the comments.

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

Reply via email to