[PATCH] D142939: Fix handling of -> calls for modernize-use-emplace
Nicolas van Kempen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 31 12:39:27 PST 2023
nicovank accepted this revision.
nicovank added a comment.
This revision is now accepted and ready to land.
This is becoming repetitive, but I guess that's the nature of those things. Maybe something like this would help clean it up, not sure if any better for right now.
template <typename T> // Lambda templates would have been nice.
auto onTypeOrPointerType(const T &Type) { // onUnderlyingType ?
return on(anyOf(hasType(Type), hasType(pointerType(pointee(Type)))));
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142939/new/
https://reviews.llvm.org/D142939
More information about the cfe-commits
mailing list