[PATCH] D26911: readability-redundant-declarations: Fix crash

2016-11-21 Thread Daniel Marjamäki via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287540: readability-redundant-declaration: Fix crash (authored by danielmarjamaki). Changed prior to commit: https://reviews.llvm.org/D26911?vs=78706&id=78715#toc Repository: rL LLVM https://reviews

[PATCH] D26911: readability-redundant-declarations: Fix crash

2016-11-21 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a reviewer: hokein. hokein added a comment. This revision is now accepted and ready to land. LGTM with a nit. Comment at: clang-tidy/readability/RedundantDeclarationCheck.cpp:33 return; + if (!Prev->getLocation().isValid()) +