[PATCH] D119670: [clang] Warn on unqualified calls to std::move and std::forward

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 24 05:43:05 PST 2022


cor3ntin updated this revision to Diff 411100.
cor3ntin marked an inline comment as done.
cor3ntin added a comment.

- Adds more tests for calls inside std, inline namespaces and adl lookup
- use llvm::find
- rename the warning flag to unqualified-std-cast-call to leave room for future extensions


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119670/new/

https://reviews.llvm.org/D119670

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaExpr.cpp
  clang/test/SemaCXX/unqualified-std-call-fixits.cpp
  clang/test/SemaCXX/unqualified-std-call.cpp
  clang/test/SemaCXX/warn-self-move.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119670.411100.patch
Type: text/x-patch
Size: 6955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220224/b52e02e8/attachment.bin>


More information about the cfe-commits mailing list