[PATCH] D102369: [ASTMatchers][NFC] Remove runtime checks where compile time is sufficient
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 12 14:18:49 PDT 2021
njames93 created this revision.
njames93 added reviewers: klimek, aaron.ballman, alexfh.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Some polymorphic matchers use dyn_cast in cases where we know the type from the TemplateParameter.
Using type_traits we can remove the need for dyn_cast and let the template instantiation handle everything.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102369
Files:
clang/include/clang/ASTMatchers/ASTMatchers.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102369.344959.patch
Type: text/x-patch
Size: 5374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210512/9e2f2f27/attachment.bin>
More information about the cfe-commits
mailing list