From: Daniel Dunbar Date: Fri, 28 Aug 2009 16:30:07 +0000 (+0000) Subject: Hide IdxVisitor and remove unimplemented method (causing link errors on x86_64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1eb79b58e56b99cf557d5d353586a10c5360364d;p=clang Hide IdxVisitor and remove unimplemented method (causing link errors on x86_64 linux builder). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80376 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index dc44fd2b1c..4c1cac9812 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -43,10 +43,10 @@ CXTranslationUnit clang_createTranslationUnit( return ASTUnit::LoadFromPCHFile(astName, CXXIdx->getFileManager(), &ErrMsg); } +namespace { + class IdxVisitor : public DeclVisitor { public: - IdxVisitor(); - void VisitNamedDecl(NamedDecl *ND) { printf("NamedDecl (%s:", ND->getDeclKindName()); if (ND->getIdentifier()) @@ -56,6 +56,8 @@ public: } }; +} + void clang_loadTranslationUnit( CXTranslationUnit CTUnit, void (*callback)(CXTranslationUnit, CXCursor)) {