[PATCH] AST matcher for exception variables
Aaron Ballman
aaron at aaronballman.com
Fri Jul 10 12:15:01 PDT 2015
There is not currently a way to match against a variable declaration
that is an exception variable. For instance:
void f() {
try {
int X;
} catch (int Y) {
}
}
You can match int X and int Y, but you cannot currently match only int
Y. The attached patch adds a matcher to allow that, as well as test
code and documentation.
~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: isExceptionVar.patch
Type: application/octet-stream
Size: 3359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150710/ba29e171/attachment.obj>
More information about the cfe-commits
mailing list