commit | be93399e619848c96b101172e68c29336fa589fe | [log] [tgz] |
---|---|---|
author | Michael Buch <michaelbuch12@gmail.com> | Wed Oct 15 15:18:25 2025 +0100 |
committer | GitHub <noreply@github.com> | Wed Oct 15 15:18:25 2025 +0100 |
tree | 5beb09b68213f2d48ca32d4f3bc1d0b84f419895 | |
parent | c4eaf56122d791d06c0a6f6be0224d8491d3beed [diff] |
[clang][Basic] Add helper APIs to get language version codes from LangOptions (#163348) Motivated by this discussion: https://github.com/llvm/llvm-project/pull/163208#discussion_r2426842999 We will soon want to emit language version codes into debug-info. Instead of replicating the `LangOptions -> version code` mapping we thought we'd try to share some of the logic with the Clang frontend. This patch teaches `LangStandard` about language versions (currently just C++ and C).
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.