diff options
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 48e8b615158..ada5d7551d7 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -629,6 +629,11 @@ bool CursorVisitor::VisitDeclContext(DeclContext *DC) { Decl *D = *I; if (D->getLexicalDeclContext() != DC) continue; + // Filter out synthesized property accessor redeclarations. + if (isa<ObjCImplDecl>(DC)) + if (auto *OMD = dyn_cast<ObjCMethodDecl>(D)) + if (OMD->isSynthesizedAccessorStub()) + continue; const Optional<bool> V = handleDeclForVisitation(D); if (!V.hasValue()) continue; |