CommentToXML.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- CommentToXML.h - Convert comments to XML representation ----------===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_CLANG_INDEX_COMMENTTOXML_H
  14. #define LLVM_CLANG_INDEX_COMMENTTOXML_H
  15. #include "clang/Basic/LLVM.h"
  16. namespace clang {
  17. class ASTContext;
  18. namespace comments {
  19. class FullComment;
  20. class HTMLTagComment;
  21. }
  22. namespace index {
  23. class CommentToXMLConverter {
  24. public:
  25. CommentToXMLConverter();
  26. ~CommentToXMLConverter();
  27. void convertCommentToHTML(const comments::FullComment *FC,
  28. SmallVectorImpl<char> &HTML,
  29. const ASTContext &Context);
  30. void convertHTMLTagNodeToText(const comments::HTMLTagComment *HTC,
  31. SmallVectorImpl<char> &Text,
  32. const ASTContext &Context);
  33. void convertCommentToXML(const comments::FullComment *FC,
  34. SmallVectorImpl<char> &XML,
  35. const ASTContext &Context);
  36. };
  37. } // namespace index
  38. } // namespace clang
  39. #endif // LLVM_CLANG_INDEX_COMMENTTOXML_H
  40. #ifdef __GNUC__
  41. #pragma GCC diagnostic pop
  42. #endif