public override string ToString() { ThrowIfDisposed(); sbyte *cString = Clang.GetCString(Struct); return(Marshal.PtrToStringAnsi(new IntPtr(cString))); }
/// <summary>Gets the text for.</summary> /// <returns>The text.</returns> public string GetText() { CXString value = Clang.TextCommentGetText(this); using (ClangString cString = new ClangString(value)) { return(cString.ToString()); } }
/// <summary>Gets the name of the template parameter.</summary> /// <returns>The name.</returns> public string GetParamName() { CXString value = Clang.ParamCommandCommentGetParamName(this); using (ClangString cString = new ClangString(value)) { return(cString.ToString()); } }
public void Dispose() { if (!disposed) { Clang.DisposeString(Struct); disposed = true; } GC.SuppressFinalize(this); }
/// <summary> /// Given a cursor that represents a documentable entity (e.g., declaration), return the /// associated parsed comment as a full-comment AST node. /// </summary> /// <returns>The parsed comment.</returns> public static Comment GetParsedComment(this Cursor cursor) => Clang.CursorGetParsedComment(GetCXCursor(cursor));
/// <summary>Gets the child comment at the specified index.</summary> /// <param name="index">The index of the child comment to retrieve.</param> /// <returns>The child comment</returns> public Comment GetChildAt(int index) => Clang.CommentGetChild(this, Convert.ToUInt32(index));
/// <summary>Gets the block command argument text of the specified word-like argument.</summary> /// <param name="index">The index of the argument.</param> /// <returns>The associated text.</returns> public string GetBlockCommandArgText(uint index) => Clang.BlockCommandCommentGetArgText(this, index);