diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-11-29 19:50:10 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-11-29 19:50:10 +0000 |
commit | ba2df16480239328ec4a1e68acdcb22051bbed0f (patch) | |
tree | 547797a4ea90a0474a16b06987ac38f0fb33df6c /include | |
parent | 0859c80137ac5fb3c86e7802cb8c5ef56f921cce (diff) | |
download | clang-ba2df16480239328ec4a1e68acdcb22051bbed0f.tar.gz |
Revert "NFC: Fix case of CommentVisitor::Visit methods"
This reverts commit 0859c80137ac5fb3c86e7802cb8c5ef56f921cce.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/CommentVisitor.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/AST/CommentVisitor.h b/include/clang/AST/CommentVisitor.h index 7dbb7e7af9..d1cc2d0a4e 100644 --- a/include/clang/AST/CommentVisitor.h +++ b/include/clang/AST/CommentVisitor.h @@ -23,10 +23,10 @@ template<template <typename> class Ptr, typename ImplClass, typename RetTy=void> class CommentVisitorBase { public: #define PTR(CLASS) typename Ptr<CLASS>::type -#define DISPATCH(NAME, CLASS) \ - return static_cast<ImplClass *>(this)->Visit##NAME(static_cast<PTR(CLASS)>(C)) +#define DISPATCH(NAME, CLASS) \ + return static_cast<ImplClass*>(this)->visit ## NAME(static_cast<PTR(CLASS)>(C)) - RetTy Visit(PTR(Comment) C) { + RetTy visit(PTR(Comment) C) { if (!C) return RetTy(); @@ -44,13 +44,13 @@ public: // If the derived class does not implement a certain Visit* method, fall back // on Visit* method for the superclass. #define ABSTRACT_COMMENT(COMMENT) COMMENT -#define COMMENT(CLASS, PARENT) \ - RetTy Visit##CLASS(PTR(CLASS) C) { DISPATCH(PARENT, PARENT); } +#define COMMENT(CLASS, PARENT) \ + RetTy visit ## CLASS(PTR(CLASS) C) { DISPATCH(PARENT, PARENT); } #include "clang/AST/CommentNodes.inc" #undef ABSTRACT_COMMENT #undef COMMENT - RetTy VisitComment(PTR(Comment) C) { return RetTy(); } + RetTy visitComment(PTR(Comment) C) { return RetTy(); } #undef PTR #undef DISPATCH |