diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-28 16:30:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-28 16:30:07 +0000 |
commit | 1eb79b58e56b99cf557d5d353586a10c5360364d (patch) | |
tree | db15ec7078f985dde8e8ba98ab5ed0653de026a0 | |
parent | d8417784e415cefba220c8fae5f6de4322a539de (diff) |
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
-rw-r--r-- | tools/CIndex/CIndex.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<IdxVisitor> { 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)) { |