Clang Purpose Guide agents through Clang-specific features: superior diagnostics, sanitizer integration, optimization remarks, static analysis, and LLVM tooling. Covers divergences from GCC and Apple/FreeBSD specifics. Triggers - "I want better compiler diagnostics/errors" - "How do I use clang-tidy / clang-format?" - "How do I see what the compiler optimised or didn't?" - "I'm on macOS / FreeBSD using clang" - "clang-cl for MSVC-compatible builds" — see - Sanitizer queries — see Workflow 1. Build mode flags (identical to GCC) Clang accepts most GCC flags. Key differences: | Feature | GCC | C…