diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-07 22:46:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-07 22:46:16 +0000 |
commit | d08900848307fdaea19d52249bdced94eefdb9bb (patch) | |
tree | 6254bcf52cf162dde37787f4821ca727379c1e7d /tools/libclang/IndexDecl.cpp | |
parent | d7a3e2c5f61cd4893f95b69a424fe4def3aa0f69 (diff) |
[libclang] Do not index implicit C++ member functions. rdar://10769813
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexDecl.cpp')
-rw-r--r-- | tools/libclang/IndexDecl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libclang/IndexDecl.cpp b/tools/libclang/IndexDecl.cpp index c6080df592..d2eb402ba2 100644 --- a/tools/libclang/IndexDecl.cpp +++ b/tools/libclang/IndexDecl.cpp @@ -243,6 +243,9 @@ public: } // anonymous namespace void IndexingContext::indexDecl(const Decl *D) { + if (D->isImplicit() && shouldIgnoreIfImplicit(D)) + return; + bool Handled = IndexingDeclVisitor(*this).Visit(const_cast<Decl*>(D)); if (!Handled && isa<DeclContext>(D)) indexDeclContext(cast<DeclContext>(D)); |