[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 8 15:04:00 PST 2024


================
@@ -2863,6 +2863,15 @@ bool QualType::isWebAssemblyFuncrefType() const {
          getAddressSpace() == LangAS::wasm_funcref;
 }
 
+bool QualType::hasWrapsAttr() const {
+  return !isNull() && getTypePtr()->hasAttr(attr::Wraps) &&
----------------
erichkeane wrote:

we probably want to do 'more work' to pull out the type you want/canonicalize the type here.

https://github.com/llvm/llvm-project/pull/115094


More information about the cfe-commits mailing list