llvm-project/clang-tools-extra/change-namespace
Eric Liu 912d039462 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
2016-09-27 12:54:48 +00:00
..
tool clang-change-namespace: Update libdeps. 2016-09-20 00:44:45 +00:00
CMakeLists.txt
ChangeNamespace.cpp Workaround ASTMatcher crashes. Added some more test cases. 2016-09-27 12:54:48 +00:00
ChangeNamespace.h [change-namespace] fix name qualifiers in UsingShadowDecl and NestedNameSpecifier. 2016-09-21 15:06:12 +00:00