Lines Matching refs:C
85 FullCommentParts(const FullComment *C,
98 FullCommentParts::FullCommentParts(const FullComment *C, in FullCommentParts() argument
101 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in FullCommentParts()
198 void printHTMLStartTagComment(const HTMLStartTagComment *C, in printHTMLStartTagComment() argument
200 Result << "<" << C->getTagName(); in printHTMLStartTagComment()
202 if (C->getNumAttrs() != 0) { in printHTMLStartTagComment()
203 for (unsigned i = 0, e = C->getNumAttrs(); i != e; i++) { in printHTMLStartTagComment()
205 const HTMLStartTagComment::Attribute &Attr = C->getAttr(i); in printHTMLStartTagComment()
212 if (!C->isSelfClosing()) in printHTMLStartTagComment()
229 void visitTextComment(const TextComment *C);
230 void visitInlineCommandComment(const InlineCommandComment *C);
231 void visitHTMLStartTagComment(const HTMLStartTagComment *C);
232 void visitHTMLEndTagComment(const HTMLEndTagComment *C);
235 void visitParagraphComment(const ParagraphComment *C);
236 void visitBlockCommandComment(const BlockCommandComment *C);
237 void visitParamCommandComment(const ParamCommandComment *C);
238 void visitTParamCommandComment(const TParamCommandComment *C);
239 void visitVerbatimBlockComment(const VerbatimBlockComment *C);
240 void visitVerbatimBlockLineComment(const VerbatimBlockLineComment *C);
241 void visitVerbatimLineComment(const VerbatimLineComment *C);
243 void visitFullComment(const FullComment *C);
249 void visitNonStandaloneParagraphComment(const ParagraphComment *C);
262 void CommentASTToHTMLConverter::visitTextComment(const TextComment *C) { in visitTextComment() argument
263 appendToResultWithHTMLEscaping(C->getText()); in visitTextComment()
267 const InlineCommandComment *C) { in visitInlineCommandComment() argument
269 if (C->getNumArgs() == 0) in visitInlineCommandComment()
273 StringRef Arg0 = C->getArgText(0); in visitInlineCommandComment()
277 switch (C->getRenderKind()) { in visitInlineCommandComment()
279 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment()
280 appendToResultWithHTMLEscaping(C->getArgText(i)); in visitInlineCommandComment()
286 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
292 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
298 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
304 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
311 const HTMLStartTagComment *C) { in visitHTMLStartTagComment() argument
312 printHTMLStartTagComment(C, Result); in visitHTMLStartTagComment()
316 const HTMLEndTagComment *C) { in visitHTMLEndTagComment() argument
317 Result << "</" << C->getTagName() << ">"; in visitHTMLEndTagComment()
321 const ParagraphComment *C) { in visitParagraphComment() argument
322 if (C->isWhitespace()) in visitParagraphComment()
326 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in visitParagraphComment()
334 const BlockCommandComment *C) { in visitBlockCommandComment() argument
335 const CommandInfo *Info = Traits.getCommandInfo(C->getCommandID()); in visitBlockCommandComment()
338 visitNonStandaloneParagraphComment(C->getParagraph()); in visitBlockCommandComment()
345 visitNonStandaloneParagraphComment(C->getParagraph()); in visitBlockCommandComment()
350 visit(C->getParagraph()); in visitBlockCommandComment()
354 const ParamCommandComment *C) { in visitParamCommandComment() argument
355 if (C->isParamIndexValid()) { in visitParamCommandComment()
356 if (C->isVarArgParam()) { in visitParamCommandComment()
358 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitParamCommandComment()
361 << C->getParamIndex() in visitParamCommandComment()
363 appendToResultWithHTMLEscaping(C->getParamName(FC)); in visitParamCommandComment()
367 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitParamCommandComment()
371 if (C->isParamIndexValid()) { in visitParamCommandComment()
372 if (C->isVarArgParam()) in visitParamCommandComment()
376 << C->getParamIndex() in visitParamCommandComment()
381 visitNonStandaloneParagraphComment(C->getParagraph()); in visitParamCommandComment()
386 const TParamCommandComment *C) { in visitTParamCommandComment() argument
387 if (C->isPositionValid()) { in visitTParamCommandComment()
388 if (C->getDepth() == 1) in visitTParamCommandComment()
390 << C->getIndex(0) in visitTParamCommandComment()
394 appendToResultWithHTMLEscaping(C->getParamName(FC)); in visitTParamCommandComment()
397 appendToResultWithHTMLEscaping(C->getParamNameAsWritten()); in visitTParamCommandComment()
402 if (C->isPositionValid()) { in visitTParamCommandComment()
403 if (C->getDepth() == 1) in visitTParamCommandComment()
405 << C->getIndex(0) in visitTParamCommandComment()
412 visitNonStandaloneParagraphComment(C->getParagraph()); in visitTParamCommandComment()
417 const VerbatimBlockComment *C) { in visitVerbatimBlockComment() argument
418 unsigned NumLines = C->getNumLines(); in visitVerbatimBlockComment()
424 appendToResultWithHTMLEscaping(C->getText(i)); in visitVerbatimBlockComment()
432 const VerbatimBlockLineComment *C) { in visitVerbatimBlockLineComment() argument
437 const VerbatimLineComment *C) { in visitVerbatimLineComment() argument
439 appendToResultWithHTMLEscaping(C->getText()); in visitVerbatimLineComment()
443 void CommentASTToHTMLConverter::visitFullComment(const FullComment *C) { in visitFullComment() argument
444 FullCommentParts Parts(C, Traits); in visitFullComment()
459 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() local
460 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment()
462 visit(C); in visitFullComment()
489 const ParagraphComment *C) { in visitNonStandaloneParagraphComment() argument
490 if (!C) in visitNonStandaloneParagraphComment()
493 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in visitNonStandaloneParagraphComment()
501 const char C = *I; in appendToResultWithHTMLEscaping() local
502 switch (C) { in appendToResultWithHTMLEscaping()
522 Result << C; in appendToResultWithHTMLEscaping()
540 void visitTextComment(const TextComment *C);
541 void visitInlineCommandComment(const InlineCommandComment *C);
542 void visitHTMLStartTagComment(const HTMLStartTagComment *C);
543 void visitHTMLEndTagComment(const HTMLEndTagComment *C);
546 void visitParagraphComment(const ParagraphComment *C);
548 void appendParagraphCommentWithKind(const ParagraphComment *C,
552 void visitBlockCommandComment(const BlockCommandComment *C);
553 void visitParamCommandComment(const ParamCommandComment *C);
554 void visitTParamCommandComment(const TParamCommandComment *C);
555 void visitVerbatimBlockComment(const VerbatimBlockComment *C);
556 void visitVerbatimBlockLineComment(const VerbatimBlockLineComment *C);
557 void visitVerbatimLineComment(const VerbatimLineComment *C);
559 void visitFullComment(const FullComment *C);
612 void CommentASTToXMLConverter::visitTextComment(const TextComment *C) { in visitTextComment() argument
613 appendToResultWithXMLEscaping(C->getText()); in visitTextComment()
617 const InlineCommandComment *C) { in visitInlineCommandComment() argument
619 if (C->getNumArgs() == 0) in visitInlineCommandComment()
623 StringRef Arg0 = C->getArgText(0); in visitInlineCommandComment()
627 switch (C->getRenderKind()) { in visitInlineCommandComment()
629 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment()
630 appendToResultWithXMLEscaping(C->getArgText(i)); in visitInlineCommandComment()
635 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
641 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
647 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
653 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
660 const HTMLStartTagComment *C) { in visitHTMLStartTagComment() argument
662 if (C->isMalformed()) in visitHTMLStartTagComment()
669 printHTMLStartTagComment(C, TagOS); in visitHTMLStartTagComment()
677 CommentASTToXMLConverter::visitHTMLEndTagComment(const HTMLEndTagComment *C) { in visitHTMLEndTagComment() argument
679 if (C->isMalformed()) in visitHTMLEndTagComment()
681 Result << "></" << C->getTagName() << "></rawHTML>"; in visitHTMLEndTagComment()
685 const ParagraphComment *C) { in visitParagraphComment() argument
686 appendParagraphCommentWithKind(C, StringRef(), StringRef()); in visitParagraphComment()
690 const ParagraphComment *C, StringRef ParagraphKind, in appendParagraphCommentWithKind() argument
692 if (C->isWhitespace() && PrependBodyText.empty()) in appendParagraphCommentWithKind()
703 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); I != E; in appendParagraphCommentWithKind()
711 const BlockCommandComment *C) { in visitBlockCommandComment() argument
715 const unsigned CommandID = C->getCommandID(); in visitBlockCommandComment()
717 if (Info->IsThrowsCommand && C->getNumArgs() > 0) { in visitBlockCommandComment()
718 ExceptionType = C->getArgText(0); in visitBlockCommandComment()
740 ParagraphKind = C->getCommandName(Traits); in visitBlockCommandComment()
746 appendParagraphCommentWithKind(C->getParagraph(), ParagraphKind, in visitBlockCommandComment()
751 const ParamCommandComment *C) { in visitParamCommandComment() argument
753 appendToResultWithXMLEscaping(C->isParamIndexValid() in visitParamCommandComment()
754 ? C->getParamName(FC) in visitParamCommandComment()
755 : C->getParamNameAsWritten()); in visitParamCommandComment()
758 if (C->isParamIndexValid()) { in visitParamCommandComment()
759 if (C->isVarArgParam()) in visitParamCommandComment()
762 Result << "<Index>" << C->getParamIndex() << "</Index>"; in visitParamCommandComment()
765 Result << "<Direction isExplicit=\"" << C->isDirectionExplicit() << "\">"; in visitParamCommandComment()
766 switch (C->getDirection()) { in visitParamCommandComment()
778 visit(C->getParagraph()); in visitParamCommandComment()
783 const TParamCommandComment *C) { in visitTParamCommandComment() argument
785 appendToResultWithXMLEscaping(C->isPositionValid() ? C->getParamName(FC) in visitTParamCommandComment()
786 : C->getParamNameAsWritten()); in visitTParamCommandComment()
789 if (C->isPositionValid() && C->getDepth() == 1) { in visitTParamCommandComment()
790 Result << "<Index>" << C->getIndex(0) << "</Index>"; in visitTParamCommandComment()
794 visit(C->getParagraph()); in visitTParamCommandComment()
799 const VerbatimBlockComment *C) { in visitVerbatimBlockComment() argument
800 unsigned NumLines = C->getNumLines(); in visitVerbatimBlockComment()
804 switch (C->getCommandID()) { in visitVerbatimBlockComment()
813 appendToResultWithXMLEscaping(C->getText(i)); in visitVerbatimBlockComment()
821 const VerbatimBlockLineComment *C) { in visitVerbatimBlockLineComment() argument
826 const VerbatimLineComment *C) { in visitVerbatimLineComment() argument
828 appendToResultWithXMLEscaping(C->getText()); in visitVerbatimLineComment()
832 void CommentASTToXMLConverter::visitFullComment(const FullComment *C) { in visitFullComment() argument
833 FullCommentParts Parts(C, Traits); in visitFullComment()
835 const DeclInfo *DI = C->getDeclInfo(); in visitFullComment()
1080 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() local
1081 if (FirstParagraphIsBrief && C == Parts.FirstParagraph) in visitFullComment()
1087 visit(C); in visitFullComment()
1098 const char C = *I; in appendToResultWithXMLEscaping() local
1099 switch (C) { in appendToResultWithXMLEscaping()
1116 Result << C; in appendToResultWithXMLEscaping()