[cfe-commits] r80376 - /cfe/trunk/tools/CIndex/CIndex.cpp

Daniel Dunbar daniel at zuster.org
Fri Aug 28 09:30:08 PDT 2009


Author: ddunbar
Date: Fri Aug 28 11:30:07 2009
New Revision: 80376

URL: http://llvm.org/viewvc/llvm-project?rev=80376&view=rev
Log:
Hide IdxVisitor and remove unimplemented method (causing link errors on x86_64
linux builder).

Modified:
    cfe/trunk/tools/CIndex/CIndex.cpp

Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=80376&r1=80375&r2=80376&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Fri Aug 28 11:30:07 2009
@@ -43,10 +43,10 @@
   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 @@
   }
 };
 
+}
+
 void clang_loadTranslationUnit(
   CXTranslationUnit CTUnit, void (*callback)(CXTranslationUnit, CXCursor))
 {





More information about the cfe-commits mailing list