Where can I find the documentation of all possible #pragma
s available in Xcode's Clang/LLVM?
I found this in the Clang user manual, that at NSHipster, and even tried grepping through the svn repo, but still could not find documentation for things like _Pragma("clang assume_nonnull begin")
.
Any hints where to look?
You're doing everything right, the only thing you're missing is: Clang we have in Xcode is different from Clang we can download at http://clang.llvm.org.
You can obtain Apple's version of compiler at http://opensource.apple.com under 'Developer tools', but usually there is pretty old version.
Whenever Apple engineers introduce something new into the compiler it's usually not available publicly yet, but they push these features into the public repo during following months.
Previously it happened with arm64, and now with nullability qualifiers.
Check the public repo again, they started pushing nullability qualifiers couple of days ago, also feel free to subscribe to Clang Developers Mailing List for updates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With