diff options
Diffstat (limited to 'tools/libclang/IndexDecl.cpp')
-rw-r--r-- | tools/libclang/IndexDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libclang/IndexDecl.cpp b/tools/libclang/IndexDecl.cpp index 2bd71295e6..3f2c8b5710 100644 --- a/tools/libclang/IndexDecl.cpp +++ b/tools/libclang/IndexDecl.cpp @@ -216,11 +216,13 @@ public: if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) { if (MD->isSynthesized()) - IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation()); + IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation(), + D->getLexicalDeclContext()); } if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) { if (MD->isSynthesized()) - IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation()); + IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation(), + D->getLexicalDeclContext()); } return true; } |