[clang] [BoundsSafety][APINotes] Upstream API notes format for bounds-safety function parameters (PR #185257)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 02:41:53 PDT 2026
================
@@ -338,6 +338,71 @@ inline bool operator!=(const ContextInfo &LHS, const ContextInfo &RHS) {
return !(LHS == RHS);
}
+/// API notes for bounds safety annotations
+class BoundsSafetyInfo {
+public:
+ enum class BoundsSafetyKind {
+ CountedBy,
+ CountedByOrNull,
+ SizedBy,
+ SizedByOrNull,
+ EndedBy,
+ };
+
+private:
+ /// Whether this property has been audited for nullability.
----------------
Xazax-hun wrote:
Do we want this information here or is the reference to 'nullability' in the comment a copy paste error?
https://github.com/llvm/llvm-project/pull/185257
More information about the cfe-commits
mailing list