Exemplo n.º 1
0
std::string Cursor::brief_comment() const
{
	UniqueCXString cx_string(clang_Cursor_getBriefCommentText(m_cx_cursor));
	if ( !cx_string ) {
		CLANGXX_THROW_LogicError("Error retrieving the brief comment text associated with this cursor.");
	}
	return clang_getCString(cx_string.get());
}
Exemplo n.º 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 ) );
  }
}
Exemplo n.º 3
0
std::string cursor::briefCommentText()
{
    return string(clang_Cursor_getBriefCommentText(cur)).str();
}
Exemplo n.º 4
0
Utf8String Cursor::briefComment() const
{
    return ClangString(clang_Cursor_getBriefCommentText(cxCursor));
}