Commit 2f2ac007 authored by Milian Wolff's avatar Milian Wolff Committed by Kevin Funk

Format comments before setting them on the DUChain

This removes the /// and /* ... */ prefixes. Not only does this
make the stuff way more readable, it also fixes our JSON tests...

(cherry picked from commit c31f2027)
parent 56416bdd
......@@ -949,7 +949,7 @@ void Visitor::setDeclData(CXCursor cursor, Declaration *decl, bool setComment) c
{
if (setComment)
#if CINDEX_VERSION_MINOR < 100 // FIXME https://bugs.llvm.org/show_bug.cgi?id=35333
decl->setComment(QByteArray(clang_getCString(clang_Cursor_getRawCommentText(cursor))));
decl->setComment(KDevelop::formatComment(QByteArray(clang_getCString(clang_Cursor_getRawCommentText(cursor)))));
#else
decl->setComment(makeComment(clang_Cursor_getParsedComment(cursor)));
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment