[clang] [Clang] add wraps and no_wraps attributes (PR #115094)
Justin Stitt via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 15:07:39 PST 2024
================
@@ -6536,6 +6536,30 @@ static void HandleBTFTypeTagAttribute(QualType &Type, const ParsedAttr &Attr,
::new (Ctx) BTFTypeTagAttr(Ctx, Attr, BTFTypeTag), Type);
}
+static void handleWrapsAttr(QualType &Type, const ParsedAttr &Attr,
+ TypeProcessingState &State, bool NoWraps = false) {
+ Sema &S = State.getSema();
+ ASTContext &Ctx = S.Context;
+
+ // wraps and no_wraps are most useful and consistent when used with C. Other
+ // languages have better alternatives within their type systems.
+ if (S.LangOpts.CPlusPlus || S.LangOpts.ObjC)
----------------
JustinStitt wrote:
For whatever reason, the execution still ends up here during parsing. Can't be an assert :(
https://github.com/llvm/llvm-project/pull/115094
More information about the cfe-commits
mailing list