diff options
author | Eric Liu <ioeric@google.com> | 2016-09-27 12:54:48 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-09-27 12:54:48 +0000 |
commit | 912d0394626f2e7a57c1c353370e9f82240f2d6f (patch) | |
tree | 8af0317a7f629c3ec4e8d6ba9e950edcd3cde4c9 /llvm/test | |
parent | 0486d585c59a993e5d2dfffe18b487e1886ac853 (diff) | |
download | bcm5719-llvm-912d0394626f2e7a57c1c353370e9f82240f2d6f.tar.gz bcm5719-llvm-912d0394626f2e7a57c1c353370e9f82240f2d6f.zip |
Workaround ASTMatcher crashes. Added some more test cases.
Summary:
- UsingDecl matcher crashed when `UsingShadowDecl` has no parent map. Workaround by moving parent check into `UsingDecl`.
- FunctionDecl matcher crashed when there is a lambda defined in parameter list (also due to no parent map).
Workaround by putting `unless(cxxMethodDecl())` before parent check.
Reviewers: klimek, sbenza, aaron.ballman, hokein
Subscribers: aaron.ballman, cfe-commits
Differential Revision: https://reviews.llvm.org/D24862
llvm-svn: 282486
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions