[PATCH] D105951: [clang] P2266 implicit moves STL workaround
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 13 18:39:33 PDT 2021
mizvekov created this revision.
mizvekov updated this revision to Diff 358468.
mizvekov added a comment.
mizvekov updated this revision to Diff 358483.
mizvekov published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
.
mizvekov added a comment.
format.
This patch replaces the workaround for simpler implicit moves
implemented in D105518 <https://reviews.llvm.org/D105518>.
The Microsoft STL currently has some issues with P2266 <https://reviews.llvm.org/P2266>.
Where before, with -fms-compatibility, we would disable simpler
implicit moves globally, with this change, we disable it only
when the returned expression is in a context contained by
std namespace and is located within a system header.
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105951
Files:
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/Inputs/sys/cxx2b-p2266-disable-with-msvc-compat-sys.hpp
clang/test/SemaCXX/Inputs/usr/cxx2b-p2266-disable-with-msvc-compat-usr.hpp
clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105951.358483.patch
Type: text/x-patch
Size: 9673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210714/93b08674/attachment-0001.bin>
More information about the cfe-commits
mailing list