commit | 9124e963a3bf73fd7430a17535d638601be5630f | [log] [tgz] |
---|---|---|
author | Michael Jones <michaelrj@google.com> | Mon Apr 28 12:06:52 2025 -0700 |
committer | GitHub <noreply@github.com> | Mon Apr 28 15:06:52 2025 -0400 |
tree | 2544966c20514ab9a3f27f21e5e90c4623b93cb6 | |
parent | abec9ff47da4fd8b614d0338203b2e3663c36aaf [diff] |
[libc] Update assert for C23 (#137402) Previously the assert macro took one argument named "e", but this led to possible errors if the caller had commas in their input. C23 changed the definition of assert to use `__VA_ARGS__` to ensure comma cases are handled properly. This patch doesn't introduce the enforcement function mentioned in the standard update, though that may be done in a followup. Fixes #136184
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.