[PATCH] D105951: [clang] P2266 implicit moves STL workaround
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 14 12:46:01 PDT 2021
mizvekov updated this revision to Diff 358702.
mizvekov added a comment.
- Small simplification to implementation, don't need to cast to NamespaceDecl.
- Simplification to tests: Use some evil prep hackery to avoid needing multipe files.
- Verify result of getReferencedDeclOfCallee is non-null.
No tests added for the last one, as I cannot think how this could actually happen in this instance.
That would suggest that maybe we should assert instead, but then it seems that if there were
such a case, it's most likely that we would want to return false anyway.
So the assert would be basically fishing for a test case. WDYT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105951/new/
https://reviews.llvm.org/D105951
Files:
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105951.358702.patch
Type: text/x-patch
Size: 9033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210714/c3d234ae/attachment.bin>
More information about the cfe-commits
mailing list