From 1eb79b58e56b99cf557d5d353586a10c5360364d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 28 Aug 2009 16:30:07 +0000 Subject: 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 --- tools/CIndex/CIndex.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/CIndex/CIndex.cpp') 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)) { -- cgit v1.2.3-70-g09d2