diff options
author | Corentin Jabot <corentin.jabot@gmail.com> | 2022-02-24 07:00:44 -0800 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2022-02-24 07:23:39 -0800 |
commit | 70b1f6de539867353940d3dcb8b25786d5082d63 (patch) | |
tree | 6a8b4522dbf6e7149065ecfa01ef5e6f309e4135 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 28cdcf8e3c8e6c51d42051b54f67c6920b5d8cf3 (diff) | |
download | llvm-70b1f6de539867353940d3dcb8b25786d5082d63.zip llvm-70b1f6de539867353940d3dcb8b25786d5082d63.tar.gz llvm-70b1f6de539867353940d3dcb8b25786d5082d63.tar.bz2 |
[clang] Warn on unqualified calls to std::move and std::forward
This adds a diagnostic when an unqualified call is resolved
to std::move or std::forward.
This follows some C++ committee discussions where some
people where concerns that this might be an usual anti pattern
particularly britle worth warning about - both because move
is a common name and because these functions accept any values.
This warns inconditionnally of whether the current context is in
std:: or not, as implementations probably want to always qualify
these calls too, to avoid triggering adl accidentally.
Differential Revision: https://reviews.llvm.org/D119670
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions