From e00ffc7bb836fbe286469e9d684f44eac99b2e3f Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 13 Jul 2012 00:44:24 +0000 Subject: Comment parsing: repaint the bikesched: rename 'HTML open tags' to 'HTML start tags' and 'HTML close tags' to 'HTML end tags' according to HTML spec. llvm-svn: 160153 --- clang/lib/AST/CommentDumper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clang/lib/AST/CommentDumper.cpp') diff --git a/clang/lib/AST/CommentDumper.cpp b/clang/lib/AST/CommentDumper.cpp index 267657b76b4..7ff61e0a27f 100644 --- a/clang/lib/AST/CommentDumper.cpp +++ b/clang/lib/AST/CommentDumper.cpp @@ -43,8 +43,8 @@ public: // Inline content. void visitTextComment(const TextComment *C); void visitInlineCommandComment(const InlineCommandComment *C); - void visitHTMLOpenTagComment(const HTMLOpenTagComment *C); - void visitHTMLCloseTagComment(const HTMLCloseTagComment *C); + void visitHTMLStartTagComment(const HTMLStartTagComment *C); + void visitHTMLEndTagComment(const HTMLEndTagComment *C); // Block content. void visitParagraphComment(const ParagraphComment *C); @@ -110,14 +110,14 @@ void CommentDumper::visitInlineCommandComment(const InlineCommandComment *C) { OS << " Arg[" << i << "]=\"" << C->getArgText(i) << "\""; } -void CommentDumper::visitHTMLOpenTagComment(const HTMLOpenTagComment *C) { +void CommentDumper::visitHTMLStartTagComment(const HTMLStartTagComment *C) { dumpComment(C); OS << " Name=\"" << C->getTagName() << "\""; if (C->getAttrCount() != 0) { OS << " Attrs: "; for (unsigned i = 0, e = C->getAttrCount(); i != e; ++i) { - const HTMLOpenTagComment::Attribute &Attr = C->getAttr(i); + const HTMLStartTagComment::Attribute &Attr = C->getAttr(i); OS << " \"" << Attr.Name << "=\"" << Attr.Value << "\""; } } @@ -125,7 +125,7 @@ void CommentDumper::visitHTMLOpenTagComment(const HTMLOpenTagComment *C) { OS << " SelfClosing"; } -void CommentDumper::visitHTMLCloseTagComment(const HTMLCloseTagComment *C) { +void CommentDumper::visitHTMLEndTagComment(const HTMLEndTagComment *C) { dumpComment(C); OS << " Name=\"" << C->getTagName() << "\""; -- cgit v1.2.3