1 //===--- CommentToXML.h - Convert comments to XML representation ----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_INDEX_COMMENTTOXML_H
11 #define LLVM_CLANG_INDEX_COMMENTTOXML_H
13 #include "clang/Basic/LLVM.h"
24 class SimpleFormatContext;
26 class CommentToXMLConverter {
27 SimpleFormatContext *FormatContext;
28 unsigned FormatInMemoryUniqueId;
31 CommentToXMLConverter() : FormatContext(0), FormatInMemoryUniqueId(0) {}
33 void convertCommentToHTML(const comments::FullComment *FC,
34 SmallVectorImpl<char> &HTML,
35 const ASTContext &Context);
37 void convertHTMLTagNodeToText(const comments::HTMLTagComment *HTC,
38 SmallVectorImpl<char> &Text,
39 const ASTContext &Context);
41 void convertCommentToXML(const comments::FullComment *FC,
42 SmallVectorImpl<char> &XML,
43 const ASTContext &Context);
49 #endif // LLVM_CLANG_INDEX_COMMENTTOXML_H