[clang] [BoundsSafety][APINotes] Upstream API notes format for bounds-safety function parameters (PR #185257)

Connector Switch via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 9 04:07:39 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.
----------------
c8ef wrote:

Fixed.

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


More information about the cfe-commits mailing list