$OpenBSD: patch-src_tools_clangrefactoringbackend_source_findcursorusr_h,v 1.1 2019/07/05 17:01:45 jca Exp $

Cope with upstream API change
https://reviews.llvm.org/D50346

Index: src/tools/clangrefactoringbackend/source/findcursorusr.h
--- src/tools/clangrefactoringbackend/source/findcursorusr.h.orig
+++ src/tools/clangrefactoringbackend/source/findcursorusr.h
@@ -161,7 +161,7 @@ std::vector<const clang::NamedDecl *> namedDeclaration
 
     auto declarations = Context.getTranslationUnitDecl()->decls();
     for (auto &currentDeclation : declarations) {
-        const auto &fileLocation = currentDeclation->getLocStart();
+        const auto &fileLocation = currentDeclation->getBeginLoc();
         const auto &fileName = sourceManager.getFilename(fileLocation);
         if (fileName == currentFile) {
             visitor.TraverseDecl(currentDeclation);
