| 138 | |
| 139 | #if CINDEX_VERSION_MINOR >= 100 // FIXME https://bugs.llvm.org/show_bug.cgi?id=35333 |
| 140 | QByteArray makeComment(CXComment comment) |
| 141 | { |
| 142 | if (Q_UNLIKELY(jsonTestRun())) { |
| 143 | auto kind = clang_Comment_getKind(comment); |
| 144 | if (kind == CXComment_Text) |
| 145 | return ClangString(clang_TextComment_getText(comment)).toByteArray(); |
| 146 | |
| 147 | QByteArray text; |
| 148 | int numChildren = clang_Comment_getNumChildren(comment); |
| 149 | for (int i = 0; i < numChildren; ++i) |
| 150 | text += makeComment(clang_Comment_getChild(comment, i)); |
| 151 | return text; |
| 152 | } |
| 153 | |
| 154 | return ClangString(clang_FullComment_getAsHTML(comment)).toByteArray(); |
| 155 | } |
| 156 | #endif |
| 157 | |
| 158 | AbstractType* createDelayedType(CXType type) |
no test coverage detected