diff options
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)); |