Nullsafe Clang — Latest Build
Built from commit e8e7d79
This release is automatically updated on every push to nullsafe-clang-dev.
What's included:
Native Binaries (Linux/macOS):
clang- The Nullsafe Clang compilerclangd- Language server for IDE integration (VSCode, vim, etc.)
WebAssembly:
clang-nullsafe.wasm- WebAssembly compiler for browser playgroundclang-nullsafe.js- JavaScript glue code
Installation:
Quick install (Linux/macOS):
curl -fsSL https://raw.githubusercontent.com/cs01/llvm-project/nullsafe-clang-dev/install.sh | bashManual install:
tar -xzf clang-nullsafe-<platform>.tar.gz
export PATH=$PWD/bin:$PATH
clang --versionUsage:
# Enable flow-sensitive nullability with nullable-by-default
clang -fflow-sensitive-nullability -fnullability-default=nullable mycode.c
# Gradual migration mode (no warnings on unannotated code)
clang -fflow-sensitive-nullability -fnullability-default=unknown mycode.c
# Promote warnings to errors
clang -fflow-sensitive-nullability -fnullability-default=nullable -Werror=nullability mycode.cTry it online:
Interactive WebAssembly playground: https://cs01.github.io/llvm-project/
See the README for full documentation.