From: Ted Kremenek Date: Thu, 18 Feb 2010 22:36:18 +0000 (+0000) Subject: Revert "Sort visitor methods so we can easily tell what's implemented." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79758f614c83ba17757618de1459e2b481f19dd2;p=clang Revert "Sort visitor methods so we can easily tell what's implemented." This reverts commit 4383e04c75731f8695b8355783f9966ac56b0926. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96622 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index b8ceb5faf1..61e9210aa5 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -256,27 +256,27 @@ public: // Declaration visitors bool VisitAttributes(Decl *D); bool VisitDeclContext(DeclContext *DC); - bool VisitDeclaratorDecl(DeclaratorDecl *DD); + bool VisitTranslationUnitDecl(TranslationUnitDecl *D); + bool VisitTypedefDecl(TypedefDecl *D); + bool VisitTagDecl(TagDecl *D); bool VisitEnumConstantDecl(EnumConstantDecl *D); - bool VisitFieldDecl(FieldDecl *D); + bool VisitDeclaratorDecl(DeclaratorDecl *DD); bool VisitFunctionDecl(FunctionDecl *ND); - bool VisitObjCCategoryDecl(ObjCCategoryDecl *ND); - bool VisitObjCCategoryImplDecl(ObjCCategoryImplDecl *D); - bool VisitObjCClassDecl(ObjCClassDecl *D); - // FIXME: ObjCCompatibleAliasDecl requires aliased-class locations. + bool VisitFieldDecl(FieldDecl *D); + bool VisitVarDecl(VarDecl *); + bool VisitObjCMethodDecl(ObjCMethodDecl *ND); bool VisitObjCContainerDecl(ObjCContainerDecl *D); - bool VisitObjCForwardProtocolDecl(ObjCForwardProtocolDecl *D); + bool VisitObjCCategoryDecl(ObjCCategoryDecl *ND); + bool VisitObjCProtocolDecl(ObjCProtocolDecl *PID); + bool VisitObjCInterfaceDecl(ObjCInterfaceDecl *D); bool VisitObjCImplDecl(ObjCImplDecl *D); + bool VisitObjCCategoryImplDecl(ObjCCategoryImplDecl *D); bool VisitObjCImplementationDecl(ObjCImplementationDecl *D); - bool VisitObjCInterfaceDecl(ObjCInterfaceDecl *D); - bool VisitObjCMethodDecl(ObjCMethodDecl *ND); // FIXME: ObjCPropertyDecl requires TypeSourceInfo, getter/setter locations, // etc. - bool VisitObjCProtocolDecl(ObjCProtocolDecl *PID); - bool VisitTagDecl(TagDecl *D); - bool VisitTranslationUnitDecl(TranslationUnitDecl *D); - bool VisitTypedefDecl(TypedefDecl *D); - bool VisitVarDecl(VarDecl *); + // FIXME: ObjCCompatibleAliasDecl requires aliased-class locations. + bool VisitObjCForwardProtocolDecl(ObjCForwardProtocolDecl *D); + bool VisitObjCClassDecl(ObjCClassDecl *D); // Type visitors // FIXME: QualifiedTypeLoc doesn't provide any location information