From 5b7f016f4127907f256b9f52c7469f2402884ddf Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Wed, 27 Jul 2016 13:37:22 +0000 Subject: [clang-rename] skip CXXConversionDecl while searching for NamedDecl llvm-svn: 276866 --- clang-tools-extra/clang-rename/USRFinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clang-rename/USRFinder.cpp') diff --git a/clang-tools-extra/clang-rename/USRFinder.cpp b/clang-tools-extra/clang-rename/USRFinder.cpp index 809cfcf460f..b64b20d54bf 100644 --- a/clang-tools-extra/clang-rename/USRFinder.cpp +++ b/clang-tools-extra/clang-rename/USRFinder.cpp @@ -52,8 +52,8 @@ public: // checking if the point lies within the length of the name of the declaration // and the start location is sufficient. bool VisitNamedDecl(const NamedDecl *Decl) { - return setResult(Decl, Decl->getLocation(), - Decl->getNameAsString().length()); + return dyn_cast(Decl) ? true : + setResult(Decl, Decl->getLocation(), Decl->getNameAsString().length()); } // Expression visitors: -- cgit v1.2.3