diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-18 18:47:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-18 18:47:08 +0000 |
commit | 7dff4163aae89553b0d3227e8e4b13ccedcfc00b (patch) | |
tree | 87f8de9bc3fb2340a8e326fb5c2eac7013593b5e | |
parent | 0e2930979d49ca137782adad4d320f39bcf5082e (diff) | |
download | bcm5719-llvm-7dff4163aae89553b0d3227e8e4b13ccedcfc00b.tar.gz bcm5719-llvm-7dff4163aae89553b0d3227e8e4b13ccedcfc00b.zip |
Sort visitor methods so we can easily tell what's implemented.
llvm-svn: 96600
-rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index 61e9210aa50..b8ceb5faf12 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/tools/CIndex/CIndex.cpp @@ -256,27 +256,27 @@ public: // Declaration visitors bool VisitAttributes(Decl *D); bool VisitDeclContext(DeclContext *DC); - bool VisitTranslationUnitDecl(TranslationUnitDecl *D); - bool VisitTypedefDecl(TypedefDecl *D); - bool VisitTagDecl(TagDecl *D); - bool VisitEnumConstantDecl(EnumConstantDecl *D); bool VisitDeclaratorDecl(DeclaratorDecl *DD); - bool VisitFunctionDecl(FunctionDecl *ND); + bool VisitEnumConstantDecl(EnumConstantDecl *D); bool VisitFieldDecl(FieldDecl *D); - bool VisitVarDecl(VarDecl *); - bool VisitObjCMethodDecl(ObjCMethodDecl *ND); - bool VisitObjCContainerDecl(ObjCContainerDecl *D); + bool VisitFunctionDecl(FunctionDecl *ND); bool VisitObjCCategoryDecl(ObjCCategoryDecl *ND); - bool VisitObjCProtocolDecl(ObjCProtocolDecl *PID); - bool VisitObjCInterfaceDecl(ObjCInterfaceDecl *D); - bool VisitObjCImplDecl(ObjCImplDecl *D); bool VisitObjCCategoryImplDecl(ObjCCategoryImplDecl *D); + bool VisitObjCClassDecl(ObjCClassDecl *D); + // FIXME: ObjCCompatibleAliasDecl requires aliased-class locations. + bool VisitObjCContainerDecl(ObjCContainerDecl *D); + bool VisitObjCForwardProtocolDecl(ObjCForwardProtocolDecl *D); + bool VisitObjCImplDecl(ObjCImplDecl *D); bool VisitObjCImplementationDecl(ObjCImplementationDecl *D); + bool VisitObjCInterfaceDecl(ObjCInterfaceDecl *D); + bool VisitObjCMethodDecl(ObjCMethodDecl *ND); // FIXME: ObjCPropertyDecl requires TypeSourceInfo, getter/setter locations, // etc. - // FIXME: ObjCCompatibleAliasDecl requires aliased-class locations. - bool VisitObjCForwardProtocolDecl(ObjCForwardProtocolDecl *D); - bool VisitObjCClassDecl(ObjCClassDecl *D); + bool VisitObjCProtocolDecl(ObjCProtocolDecl *PID); + bool VisitTagDecl(TagDecl *D); + bool VisitTranslationUnitDecl(TranslationUnitDecl *D); + bool VisitTypedefDecl(TypedefDecl *D); + bool VisitVarDecl(VarDecl *); // Type visitors // FIXME: QualifiedTypeLoc doesn't provide any location information |