| commit | d05ab119e188be99697f142a02c6b71137fde082 | [log] [tgz] |
|---|---|---|
| author | Louis Dionne <ldionne.2@gmail.com> | Tue May 06 15:44:26 2025 -0400 |
| committer | GitHub <noreply@github.com> | Tue May 06 15:44:26 2025 -0400 |
| tree | dd18127f4a1a5b63440bc1f9e04bd4b60102cb08 | |
| parent | 60b43ef70b6d0bef9b738d1358a71b55d402288f [diff] |
[libc++] Remove redundant and somewhat confusing assertions around advance() (#133276) The std::advance function has a clear precondition that it can only be called with a negative distance when a bidirectional iterator is used. However, prev() and next() don't have such preconditions explicitly, they inherit it from calling advance(). This patch removes assertions in prev() and next() that were duplicates of similar ones in advance(), and removes a copy-pasted comment that was trying to justify the use of _LIBCPP_ASSERT_PEDANTIC but IMO is creating confusion with little benefit.
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.