Skip to content

v0.1.6

Latest

Choose a tag to compare

@cs01 cs01 released this 28 Nov 15:55
· 6 commits to null-safe-c-dev since this release

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 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/null-safe-c-dev/install.sh | sh

Manual install:

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

Usage:

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

Try it online:

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

See the README for full documentation.