Lines Matching refs:C

84   FullCommentParts(const FullComment *C,
97 FullCommentParts::FullCommentParts(const FullComment *C, in FullCommentParts() argument
100 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in FullCommentParts()
197 void printHTMLStartTagComment(const HTMLStartTagComment *C, in printHTMLStartTagComment() argument
199 Result << "<" << C->getTagName(); in printHTMLStartTagComment()
201 if (C->getNumAttrs() != 0) { in printHTMLStartTagComment()
202 for (unsigned i = 0, e = C->getNumAttrs(); i != e; i++) { in printHTMLStartTagComment()
204 const HTMLStartTagComment::Attribute &Attr = C->getAttr(i); in printHTMLStartTagComment()
211 if (!C->isSelfClosing()) in printHTMLStartTagComment()
228 void visitTextComment(const TextComment *C);
229 void visitInlineCommandComment(const InlineCommandComment *C);
230 void visitHTMLStartTagComment(const HTMLStartTagComment *C);
231 void visitHTMLEndTagComment(const HTMLEndTagComment *C);
234 void visitParagraphComment(const ParagraphComment *C);
235 void visitBlockCommandComment(const BlockCommandComment *C);
236 void visitParamCommandComment(const ParamCommandComment *C);
237 void visitTParamCommandComment(const TParamCommandComment *C);
238 void visitVerbatimBlockComment(const VerbatimBlockComment *C);
239 void visitVerbatimBlockLineComment(const VerbatimBlockLineComment *C);
240 void visitVerbatimLineComment(const VerbatimLineComment *C);
242 void visitFullComment(const FullComment *C);
248 void visitNonStandaloneParagraphComment(const ParagraphComment *C);
261 void CommentASTToHTMLConverter::visitTextComment(const TextComment *C) { in visitTextComment() argument
262 appendToResultWithHTMLEscaping(C->getText()); in visitTextComment()
266 const InlineCommandComment *C) { in visitInlineCommandComment() argument
268 if (C->getNumArgs() == 0) in visitInlineCommandComment()
272 StringRef Arg0 = C->getArgText(0); in visitInlineCommandComment()
276 switch (C->getRenderKind()) { in visitInlineCommandComment()
278 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment()
279 appendToResultWithHTMLEscaping(C->getArgText(i)); in visitInlineCommandComment()
285 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
291 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
297 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
303 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
310 const HTMLStartTagComment *C) { in visitHTMLStartTagComment() argument
311 printHTMLStartTagComment(C, Result); in visitHTMLStartTagComment()
315 const HTMLEndTagComment *C) { in visitHTMLEndTagComment() argument
316 Result << "</" << C->getTagName() << ">"; in visitHTMLEndTagComment()
320 const ParagraphComment *C) { in visitParagraphComment() argument
321 if (C->isWhitespace()) in visitParagraphComment()
325 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in visitParagraphComment()
333 const BlockCommandComment *C) { in visitBlockCommandComment() argument
334 const CommandInfo *Info = Traits.getCommandInfo(C->getCommandID()); in visitBlockCommandComment()
337 visitNonStandaloneParagraphComment(C->getParagraph()); in visitBlockCommandComment()
344 visitNonStandaloneParagraphComment(C->getParagraph()); in visitBlockCommandComment()
349 visit(C->getParagraph()); in visitBlockCommandComment()
353 const ParamCommandComment *C) { in visitParamCommandComment() argument
354 if (C->isParamIndexValid()) { in visitParamCommandComment()
355 if (C->isVarArgParam()) { in visitParamCommandComment()
357 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitParamCommandComment()
360 << C->getParamIndex() in visitParamCommandComment()
362 appendToResultWithHTMLEscaping(C->getParamName(FC)); in visitParamCommandComment()
366 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitParamCommandComment()
370 if (C->isParamIndexValid()) { in visitParamCommandComment()
371 if (C->isVarArgParam()) in visitParamCommandComment()
375 << C->getParamIndex() in visitParamCommandComment()
380 visitNonStandaloneParagraphComment(C->getParagraph()); in visitParamCommandComment()
385 const TParamCommandComment *C) { in visitTParamCommandComment() argument
386 if (C->isPositionValid()) { in visitTParamCommandComment()
387 if (C->getDepth() == 1) in visitTParamCommandComment()
389 << C->getIndex(0) in visitTParamCommandComment()
393 appendToResultWithHTMLEscaping(C->getParamName(FC)); in visitTParamCommandComment()
396 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitTParamCommandComment()
401 if (C->isPositionValid()) { in visitTParamCommandComment()
402 if (C->getDepth() == 1) in visitTParamCommandComment()
404 << C->getIndex(0) in visitTParamCommandComment()
411 visitNonStandaloneParagraphComment(C->getParagraph()); in visitTParamCommandComment()
416 const VerbatimBlockComment *C) { in visitVerbatimBlockComment() argument
417 unsigned NumLines = C->getNumLines(); in visitVerbatimBlockComment()
423 appendToResultWithHTMLEscaping(C->getText(i)); in visitVerbatimBlockComment()
431 const VerbatimBlockLineComment *C) { in visitVerbatimBlockLineComment() argument
436 const VerbatimLineComment *C) { in visitVerbatimLineComment() argument
438 appendToResultWithHTMLEscaping(C->getText()); in visitVerbatimLineComment()
442 void CommentASTToHTMLConverter::visitFullComment(const FullComment *C) { in visitFullComment() argument
443 FullCommentParts Parts(C, Traits); in visitFullComment()
458 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() local
459 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment()
461 visit(C); in visitFullComment()
488 const ParagraphComment *C) { in visitNonStandaloneParagraphComment() argument
489 if (!C) in visitNonStandaloneParagraphComment()
492 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in visitNonStandaloneParagraphComment()
500 const char C = *I; in appendToResultWithHTMLEscaping() local
501 switch (C) { in appendToResultWithHTMLEscaping()
521 Result << C; in appendToResultWithHTMLEscaping()
539 void visitTextComment(const TextComment *C);
540 void visitInlineCommandComment(const InlineCommandComment *C);
541 void visitHTMLStartTagComment(const HTMLStartTagComment *C);
542 void visitHTMLEndTagComment(const HTMLEndTagComment *C);
545 void visitParagraphComment(const ParagraphComment *C);
547 void appendParagraphCommentWithKind(const ParagraphComment *C,
550 void visitBlockCommandComment(const BlockCommandComment *C);
551 void visitParamCommandComment(const ParamCommandComment *C);
552 void visitTParamCommandComment(const TParamCommandComment *C);
553 void visitVerbatimBlockComment(const VerbatimBlockComment *C);
554 void visitVerbatimBlockLineComment(const VerbatimBlockLineComment *C);
555 void visitVerbatimLineComment(const VerbatimLineComment *C);
557 void visitFullComment(const FullComment *C);
610 void CommentASTToXMLConverter::visitTextComment(const TextComment *C) { in visitTextComment() argument
611 appendToResultWithXMLEscaping(C->getText()); in visitTextComment()
615 const InlineCommandComment *C) { in visitInlineCommandComment() argument
617 if (C->getNumArgs() == 0) in visitInlineCommandComment()
621 StringRef Arg0 = C->getArgText(0); in visitInlineCommandComment()
625 switch (C->getRenderKind()) { in visitInlineCommandComment()
627 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment()
628 appendToResultWithXMLEscaping(C->getArgText(i)); in visitInlineCommandComment()
633 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
639 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
645 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
651 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
658 const HTMLStartTagComment *C) { in visitHTMLStartTagComment() argument
660 if (C->isMalformed()) in visitHTMLStartTagComment()
667 printHTMLStartTagComment(C, TagOS); in visitHTMLStartTagComment()
675 CommentASTToXMLConverter::visitHTMLEndTagComment(const HTMLEndTagComment *C) { in visitHTMLEndTagComment() argument
677 if (C->isMalformed()) in visitHTMLEndTagComment()
679 Result << ">&lt;/" << C->getTagName() << "&gt;</rawHTML>"; in visitHTMLEndTagComment()
683 CommentASTToXMLConverter::visitParagraphComment(const ParagraphComment *C) { in visitParagraphComment() argument
684 appendParagraphCommentWithKind(C, StringRef()); in visitParagraphComment()
688 const ParagraphComment *C, in appendParagraphCommentWithKind() argument
690 if (C->isWhitespace()) in appendParagraphCommentWithKind()
698 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in appendParagraphCommentWithKind()
706 const BlockCommandComment *C) { in visitBlockCommandComment() argument
709 switch (C->getCommandID()) { in visitBlockCommandComment()
728 ParagraphKind = C->getCommandName(Traits); in visitBlockCommandComment()
734 appendParagraphCommentWithKind(C->getParagraph(), ParagraphKind); in visitBlockCommandComment()
738 const ParamCommandComment *C) { in visitParamCommandComment() argument
740 appendToResultWithXMLEscaping(C->isParamIndexValid() in visitParamCommandComment()
741 ? C->getParamName(FC) in visitParamCommandComment()
742 : C->getParamNameAsWritten()); in visitParamCommandComment()
745 if (C->isParamIndexValid()) { in visitParamCommandComment()
746 if (C->isVarArgParam()) in visitParamCommandComment()
749 Result << "<Index>" << C->getParamIndex() << "</Index>"; in visitParamCommandComment()
752 Result << "<Direction isExplicit=\"" << C->isDirectionExplicit() << "\">"; in visitParamCommandComment()
753 switch (C->getDirection()) { in visitParamCommandComment()
765 visit(C->getParagraph()); in visitParamCommandComment()
770 const TParamCommandComment *C) { in visitTParamCommandComment() argument
772 appendToResultWithXMLEscaping(C->isPositionValid() ? C->getParamName(FC) in visitTParamCommandComment()
773 : C->getParamNameAsWritten()); in visitTParamCommandComment()
776 if (C->isPositionValid() && C->getDepth() == 1) { in visitTParamCommandComment()
777 Result << "<Index>" << C->getIndex(0) << "</Index>"; in visitTParamCommandComment()
781 visit(C->getParagraph()); in visitTParamCommandComment()
786 const VerbatimBlockComment *C) { in visitVerbatimBlockComment() argument
787 unsigned NumLines = C->getNumLines(); in visitVerbatimBlockComment()
791 switch (C->getCommandID()) { in visitVerbatimBlockComment()
800 appendToResultWithXMLEscaping(C->getText(i)); in visitVerbatimBlockComment()
808 const VerbatimBlockLineComment *C) { in visitVerbatimBlockLineComment() argument
813 const VerbatimLineComment *C) { in visitVerbatimLineComment() argument
815 appendToResultWithXMLEscaping(C->getText()); in visitVerbatimLineComment()
819 void CommentASTToXMLConverter::visitFullComment(const FullComment *C) { in visitFullComment() argument
820 FullCommentParts Parts(C, Traits); in visitFullComment()
822 const DeclInfo *DI = C->getDeclInfo(); in visitFullComment()
1062 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() local
1063 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment()
1069 visit(C); in visitFullComment()
1080 const char C = *I; in appendToResultWithXMLEscaping() local
1081 switch (C) { in appendToResultWithXMLEscaping()
1098 Result << C; in appendToResultWithXMLEscaping()