Skip to content

Latest Build (e8e7d79)

Latest

Choose a tag to compare

@github-actions github-actions released this 11 May 20:38

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 compiler
  • clangd - Language server for IDE integration (VSCode, vim, etc.)

WebAssembly:

  • clang-nullsafe.wasm - WebAssembly compiler for browser playground
  • clang-nullsafe.js - JavaScript glue code

Installation:

Quick install (Linux/macOS):

curl -fsSL https://raw.githubusercontent.com/cs01/llvm-project/nullsafe-clang-dev/install.sh | bash

Manual install:

tar -xzf clang-nullsafe-<platform>.tar.gz
export PATH=$PWD/bin:$PATH
clang --version

Usage:

# 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.c

Try it online:

Interactive WebAssembly playground: https://cs01.github.io/llvm-project/

See the README for full documentation.