[all-commits] [llvm/llvm-project] d9d930: [clang][Sema] Warn on self move for inlined static...
Max Winkler via All-commits
all-commits at lists.llvm.org
Wed Mar 6 07:58:24 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9d9301eec6dfefcf53fd04b61324f140f273033
https://github.com/llvm/llvm-project/commit/d9d9301eec6dfefcf53fd04b61324f140f273033
Author: Max Winkler <82551778+MaxEW707 at users.noreply.github.com>
Date: 2024-03-06 (Wed, 06 Mar 2024)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/SemaCXX/warn-self-move.cpp
Log Message:
-----------
[clang][Sema] Warn on self move for inlined static cast (#76646)
There are code bases that inline `std::move` manually via `static_cast`.
Treat a static cast to an xvalue as an inlined `std::move` call and warn
on a self move.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list