aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>2022-01-03 20:49:24 -0500
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>2022-01-08 12:47:54 -0500
commit6ce732cbadf7b474da1108dc7b3b473b80944aa5 (patch)
tree7785de2659ef98a0e99a76223b8cbc4ce32872ba /clang/lib/CodeGen/CodeGenModule.cpp
parent930f3c625e0277c4a28e66f79df7d8ad0de258e5 (diff)
downloadllvm-6ce732cbadf7b474da1108dc7b3b473b80944aa5.zip
llvm-6ce732cbadf7b474da1108dc7b3b473b80944aa5.tar.gz
llvm-6ce732cbadf7b474da1108dc7b3b473b80944aa5.tar.bz2
[libc++] [ranges] Add namespace __cpo to ranges::{advance,next,prev}.
The reason for those nested namespaces is explained in D115315: > AIUI, this keeps the CPO's own type from ADL'ing into the `std::ranges` > namespace; e.g. `foobar(std::ranges::uninitialized_default_construct)` > should not consider `std::ranges::foobar` a candidate, even if > `std::ranges::foobar` is not a CPO itself. Also, of course, consistency > (Chesterton's Fence, the economist's hundred-dollar bill): if it were > safe to omit the namespace, we'd certainly want to do it everywhere, > not just here. This makes these three niebloids more consistent with the other Ranges niebloids we've already implemented, such as the `ranges::begin` group and the `ranges::uninitialized_default_construct` group. FWIW, we still have three different indentation-and-comment styles among these three groups. Differential Revision: https://reviews.llvm.org/D116569
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions