MCPcopy Create free account
hub / github.com/KDE/kdevelop / makeComment

Function makeComment

plugins/clang/duchain/builder.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139#if CINDEX_VERSION_MINOR >= 100 // FIXME https://bugs.llvm.org/show_bug.cgi?id=35333
140QByteArray 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
158AbstractType* createDelayedType(CXType type)

Callers 1

setDeclDataMethod · 0.85

Calls 3

jsonTestRunFunction · 0.85
ClangStringClass · 0.85
toByteArrayMethod · 0.80

Tested by

no test coverage detected