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"
25 class CommentToXMLConverter {
27 CommentToXMLConverter();
28 ~CommentToXMLConverter();
30 void convertCommentToHTML(const comments::FullComment *FC,
31 SmallVectorImpl<char> &HTML,
32 const ASTContext &Context);
34 void convertHTMLTagNodeToText(const comments::HTMLTagComment *HTC,
35 SmallVectorImpl<char> &Text,
36 const ASTContext &Context);
38 void convertCommentToXML(const comments::FullComment *FC,
39 SmallVectorImpl<char> &XML,
40 const ASTContext &Context);
46 #endif // LLVM_CLANG_INDEX_COMMENTTOXML_H