clang-tidy/readability-identifier-naming: crash on DependentTemplateSpecializationType
authorMatthias Gehre <M.Gehre@gmx.de>
Sat, 9 Jul 2016 20:09:28 +0000 (20:09 +0000)
committerMatthias Gehre <M.Gehre@gmx.de>
Sat, 9 Jul 2016 20:09:28 +0000 (20:09 +0000)
commita9e812b9cb70603627c44ece2fe5b1ee405335da
tree9926e32677d8b6144aa99e850d807249090e4724
parent177553511d4d40fcc9d55ee336451f119071c809
clang-tidy/readability-identifier-naming: crash on DependentTemplateSpecializationType

Summary:
Previously, the added test cases crashed because the passed a null Decl
to addUsage().

Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D22188

llvm-svn: 274985
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/test/clang-tidy/readability-identifier-naming.cpp