[PATCH] D98497: [ASTMatchers] Don't forward matchers in MapAnyOf
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 15 07:17:17 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG74c270f33eb1: [ASTMatchers] Don't forward matchers in MapAnyOf (authored by njames93).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98497/new/
https://reviews.llvm.org/D98497
Files:
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
Index: clang/include/clang/ASTMatchers/ASTMatchersInternal.h
===================================================================
--- clang/include/clang/ASTMatchers/ASTMatchersInternal.h
+++ clang/include/clang/ASTMatchers/ASTMatchersInternal.h
@@ -1386,8 +1386,7 @@
internal::DynTypedMatcher::VO_AnyOf},
applyMatcher(
[&](auto... Matcher) {
- return std::make_tuple(Matcher(
- std::forward<decltype(InnerMatcher)>(InnerMatcher)...)...);
+ return std::make_tuple(Matcher(InnerMatcher...)...);
},
std::tuple<
VariadicDynCastAllOfMatcher<CladeType, MatcherTypes>...>())));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98497.330651.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210315/00f5a034/attachment.bin>
More information about the cfe-commits
mailing list