aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>2020-11-27 14:44:53 -0500
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>2020-12-01 22:13:39 -0500
commit40950a44b9a6aefe17b130e291f8728b34844bce (patch)
tree79597d0290b00d0413414ae2c76da4898dbc5a31 /llvm/lib/Support/SmallVector.cpp
parentc3e15b3c1c1cb52c83686812a7640e1dd809d695 (diff)
downloadllvm-40950a44b9a6aefe17b130e291f8728b34844bce.zip
llvm-40950a44b9a6aefe17b130e291f8728b34844bce.tar.gz
llvm-40950a44b9a6aefe17b130e291f8728b34844bce.tar.bz2
[libc++] ADL-proof <thread>, and eliminate `using namespace chrono`.
Since we know exactly which identifiers we expect to find in `chrono`, a using-directive seems like massive overkill. Remove the directives and qualify the names as needed. One subtle trick here: In two places I replaced `*__p` with `*__p.get()`. The former is an unqualified call to `operator*` on a class type, which triggers ADL and breaks the new test. The latter is a call to the built-in `operator*` on pointers, which specifically does NOT trigger ADL thanks to [over.match.oper]/1. Differential Revision: https://reviews.llvm.org/D92243
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions