| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_SERIALIZE_H |
| 16 |
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_SERIALIZE_H |
| 17 |
|
| 18 |
#include "Representation.h" |
| 19 |
#include "clang/AST/AST.h" |
| 20 |
#include "clang/AST/CommentVisitor.h" |
| 21 |
#include <string> |
| 22 |
#include <vector> |
| 23 |
|
| 24 |
using namespace clang::comments; |
| 25 |
|
| 26 |
namespace clang { |
| 27 |
namespace doc { |
| 28 |
namespace serialize { |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 40 |
emitInfo(const NamespaceDecl *D, const FullComment *FC, int LineNumber, |
| 41 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 42 |
|
| 43 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 44 |
emitInfo(const RecordDecl *D, const FullComment *FC, int LineNumber, |
| 45 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 46 |
|
| 47 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 48 |
emitInfo(const EnumDecl *D, const FullComment *FC, int LineNumber, |
| 49 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 50 |
|
| 51 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 52 |
emitInfo(const FunctionDecl *D, const FullComment *FC, int LineNumber, |
| 53 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 54 |
|
| 55 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 56 |
emitInfo(const CXXMethodDecl *D, const FullComment *FC, int LineNumber, |
| 57 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 58 |
|
| 59 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 60 |
emitInfo(const TypedefDecl *D, const FullComment *FC, int LineNumber, |
| 61 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 62 |
|
| 63 |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>> |
| 64 |
emitInfo(const TypeAliasDecl *D, const FullComment *FC, int LineNumber, |
| 65 |
StringRef File, bool IsFileInRootDir, bool PublicOnly); |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
SymbolID hashUSR(llvm::StringRef USR); |
| 73 |
|
| 74 |
std::string serialize(std::unique_ptr<Info> &I); |
| 75 |
|
| 76 |
} |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
#endif |