aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2020-02-11 10:34:01 -0800
committerJustin Lebar <jlebar@google.com>2020-02-11 14:41:22 -0800
commitac66c61bf9463bf419102ad8b6565dcbc495b0ab (patch)
tree546679879dca05363e5d9f8426e31ed8708fab63 /llvm/lib/Support/ErrorHandling.cpp
parent846d0ac43eb95c7f2f7e98b076b42c8c3208f506 (diff)
downloadllvm-ac66c61bf9463bf419102ad8b6565dcbc495b0ab.zip
llvm-ac66c61bf9463bf419102ad8b6565dcbc495b0ab.tar.gz
llvm-ac66c61bf9463bf419102ad8b6565dcbc495b0ab.tar.bz2
Use C++14-style return type deduction in clang.
Summary: Simplifies the C++11-style "-> decltype(...)" return-type deduction. Note that you have to be careful about whether the function return type is `auto` or `decltype(auto)`. The difference is that bare `auto` strips const and reference, just like lambda return type deduction. In some cases that's what we want (or more likely, we know that the return type is a value type), but whenever we're wrapping a templated function which might return a reference, we need to be sure that the return type is decltype(auto). No functional change. Reviewers: bkramer, MaskRay, martong, shafik Subscribers: martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74423
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions