Example #1
0
std::string Cursor::raw_comment() const
{
	UniqueCXString cx_string(clang_Cursor_getRawCommentText(m_cx_cursor));
	if ( !cx_string ) {
		CLANGXX_THROW_LogicError("Error retrieving the raw comment text associated with this cursor.");
	}
	return clang_getCString(cx_string.get());
}
Example #2
0
DocumentationData::DocumentationData( const CXCursor& cursor )
  : raw_comment( CXStringToString( clang_Cursor_getRawCommentText( cursor ) ) )
  , brief_comment( CXStringToString(
                                 clang_Cursor_getBriefCommentText( cursor ) ) )
  , canonical_type( CXStringToString(
                    clang_getTypeSpelling( clang_getCursorType( cursor ) ) ) )
  , display_name( CXStringToString( clang_getCursorSpelling( cursor ) ) ) {


  CXComment parsed_comment = clang_Cursor_getParsedComment( cursor );
  if ( CXCommentValid( parsed_comment ) ) {
    comment_xml = CXStringToString(
                                clang_FullComment_getAsXML( parsed_comment ) );
  }
}
Example #3
0
std::string cursor::rawCommentText()
{
    return string(clang_Cursor_getRawCommentText(cur)).str();
}
Example #4
0
Utf8String Cursor::rawComment() const
{
    return ClangString(clang_Cursor_getRawCommentText(cxCursor));
}