| commit | 51dfe28f8754417dbd367150792116324881f496 | [log] [tgz] |
|---|---|---|
| author | Matheus Izvekov <mizvekov@gmail.com> | Mon Jun 30 10:19:29 2025 -0300 |
| committer | GitHub <noreply@github.com> | Mon Jun 30 10:19:29 2025 -0300 |
| tree | 1b346275eead4090d8b56c3740690cf7c6c2b56c | |
| parent | d4fdfc3aa718b7cdc96a6e4bab4462247bc7940b [diff] |
[clang] odr-checker fix for conversion operators (#146153) This fixes an issue with the ODR checker not using the as-written type of conversion operators. The odr-checker in general should not have to deal with canonical types, as its purpose is to compare same definitions across TUs, and these need to be same as written, with few exceptions. Using canonical types is specially problematic when expressions are involved, as the types which refer to them generally pick an arbitrary representative expression, and this can lead to false mismatches. This patch makes sure that when hashing the names of declarations, if a DeclarationNameInfo is available, its type source info is used, instead of the type contained in the DeclarationName, which otherwise is always canonical. This patch supersedes #144796, as it fixes the problem without weakening the ODR checker. Fixes https://github.com/llvm/llvm-project/issues/143152
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.