Null-Safe Clang Release
This release contains the Null-Safe Clang compiler for all platforms.
What's included:
Native Binaries (Linux/macOS):
clang- The Null-Safe C 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/null-safe-c-dev/install.sh | shManual install:
tar -xzf clang-nullsafe-<platform>.tar.gz
export PATH=$PWD/bin:$PATH
clang --versionUsage:
# Compile with null-safety warnings (default)
clang mycode.c
# Promote warnings to errors
clang -Werror=nullability mycode.c
# Disable null-safety checking
clang -fno-strict-nullability mycode.cTry it online:
Interactive WebAssembly playground: https://cs01.github.io/llvm-project/
See the README for full documentation.