Changeset View
Changeset View
Standalone View
Standalone View
plugins/clang/duchain/builder.cpp
Show First 20 Lines • Show All 943 Lines • ▼ Show 20 Line(s) | |||||
944 | //END dispatchCursor | 944 | //END dispatchCursor | ||
945 | 945 | | |||
946 | //BEGIN setDeclData | 946 | //BEGIN setDeclData | ||
947 | template<CXCursorKind CK> | 947 | template<CXCursorKind CK> | ||
948 | void Visitor::setDeclData(CXCursor cursor, Declaration *decl, bool setComment) const | 948 | void Visitor::setDeclData(CXCursor cursor, Declaration *decl, bool setComment) const | ||
949 | { | 949 | { | ||
950 | if (setComment) | 950 | if (setComment) | ||
951 | #if CINDEX_VERSION_MINOR < 100 // FIXME https://bugs.llvm.org/show_bug.cgi?id=35333 | 951 | #if CINDEX_VERSION_MINOR < 100 // FIXME https://bugs.llvm.org/show_bug.cgi?id=35333 | ||
952 | decl->setComment(QByteArray(clang_getCString(clang_Cursor_getRawCommentText(cursor)))); | 952 | decl->setComment(KDevelop::formatComment(QByteArray(clang_getCString(clang_Cursor_getRawCommentText(cursor))))); | ||
953 | #else | 953 | #else | ||
954 | decl->setComment(makeComment(clang_Cursor_getParsedComment(cursor))); | 954 | decl->setComment(makeComment(clang_Cursor_getParsedComment(cursor))); | ||
955 | #endif | 955 | #endif | ||
956 | if (CursorKindTraits::isAliasType(CK)) { | 956 | if (CursorKindTraits::isAliasType(CK)) { | ||
957 | decl->setIsTypeAlias(true); | 957 | decl->setIsTypeAlias(true); | ||
958 | } | 958 | } | ||
959 | if (CK == CXCursor_Namespace) | 959 | if (CK == CXCursor_Namespace) | ||
960 | decl->setKind(Declaration::Namespace); | 960 | decl->setKind(Declaration::Namespace); | ||
▲ Show 20 Lines • Show All 624 Lines • Show Last 20 Lines |