Skip to content
systemcoding.dev

Tag

clang

15 posts

Flat illustration of heap memory as allocated and free blocks, with the C, LLVM and Zig logos.
Systems Programming

Detect Heap Bugs with AddressSanitizer

Compile with -fsanitize=address to catch heap overflows, use after free, double free and leaks, and learn to read the report that names the exact line.

7 min read
Flat illustration of source code passing through a compiler and linker into a binary, with the LLVM, GNU and CMake logos.
Toolchains

Enforce a Code Style With clang-format

Configure clang-format with a .clang-format file, format files and diffs, and fail CI on unformatted code so style discussions end before review.

6 min read