[clang] [APINotes] Strip selector volatile and nested nullability from parameter selectors (PR #215266)

John Hui via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 08:56:53 PDT 2026


================
@@ -22,6 +22,12 @@ void multiAliasGlobal(DeepAliasInt);
 void nullableGlobal(char * _Nonnull);
 void rawIntGlobal(int);
 void constValueGlobal(const int);
+void volatileValueGlobal(volatile int);
+void pointerVolatileGlobal(int *volatile);
+void pointeeVolatileMismatchGlobal(volatile int *);
+void nestedNullableGlobal(int * _Nullable * _Nullable);
+void nullableArrayGlobal(int * _Nullable values[4]);
+void nullableFunctionPointerGlobal(void (*callback)(int * _Nullable));
----------------
j-hui wrote:

Could you add a test involving a nullable/non-null function pointer?

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


More information about the cfe-commits mailing list