c/clang:array size & raw comment

This commit is contained in:
luoliwoshang
2024-08-14 18:30:17 +08:00
parent 9f1100b967
commit 7033f11d56
2 changed files with 29 additions and 0 deletions

View File

@@ -1702,6 +1702,19 @@ func (c Cursor) CXXAccessSpecifier() CXXAccessSpecifier {
return c.wrapCXXAccessSpecifier()
}
/**
* Given a cursor that represents a declaration, return the associated
* comment text, including comment markers.
*/
// llgo:link (*Cursor).wrapRawCommentText C.wrap_clang_Cursor_getRawCommentText
func (c *Cursor) wrapRawCommentText() (ret String) {
return
}
func (c Cursor) RawCommentText() (ret String) {
return c.wrapRawCommentText()
}
/**
* Retrieve the physical extent of the source construct referenced by
* the given cursor.
@@ -1869,6 +1882,18 @@ func (t Type) ArrayElementType() (ret Type) {
return
}
/**
* Return the array size of a constant array.
*
* If a non-array type is passed in, -1 is returned.
*/
// llgo:link (*Type).wrapArraySize C.wrap_clang_getArraySize
func (t *Type) wrapArraySize() (ret c.LongLong) { return 0 }
func (t Type) ArraySize() (ret c.LongLong) {
return t.wrapArraySize()
}
/**
* Return the canonical type for a CXType.
*