1 //===--- CommentToXML.h - Convert comments to XML representation ----------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_INDEX_COMMENTTOXML_H
10 #define LLVM_CLANG_INDEX_COMMENTTOXML_H
12 #include "clang/Basic/LLVM.h"
24 class CommentToXMLConverter {
26 CommentToXMLConverter();
27 ~CommentToXMLConverter();
29 void convertCommentToHTML(const comments::FullComment *FC,
30 SmallVectorImpl<char> &HTML,
31 const ASTContext &Context);
33 void convertHTMLTagNodeToText(const comments::HTMLTagComment *HTC,
34 SmallVectorImpl<char> &Text,
35 const ASTContext &Context);
37 void convertCommentToXML(const comments::FullComment *FC,
38 SmallVectorImpl<char> &XML,
39 const ASTContext &Context);
45 #endif // LLVM_CLANG_INDEX_COMMENTTOXML_H