} // 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));
return clang_getNullCursor();
}
-bool IndexingContext::shouldIgnoreIfImplicit(const NamedDecl *D) {
+bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) {
if (isa<ObjCInterfaceDecl>(D))
return false;
if (isa<ObjCCategoryDecl>(D))
CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);
- static bool shouldIgnoreIfImplicit(const NamedDecl *D);
+ static bool shouldIgnoreIfImplicit(const Decl *D);
};
class ScratchAlloc {