[PATCH] AST matcher for final classes and methods

Aaron Ballman aaron at aaronballman.com
Wed Jul 22 11:42:09 PDT 2015


This patch adds a narrowing AST matcher, isFinal(), so that you can
match on final classes or methods. While this could be accomplished
through use of the hasAttr() matcher, the fact that we model final as
an attribute is really an implementation detail.

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final.patch
Type: application/octet-stream
Size: 4415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150722/83df5388/attachment.obj>


More information about the cfe-commits mailing list