c/clang:variadic

This commit is contained in:
luoliwoshang
2024-08-27 18:54:41 +08:00
parent c490f2b849
commit a65c2f4312
2 changed files with 33 additions and 0 deletions

View File

@@ -1947,6 +1947,17 @@ func (t Type) NonReferenceType() (ret Type) {
return
}
/**
* Return the cursor for the declaration of the given type.
*/
// llgo:link (*Type).wrapTypeDeclaration C.wrap_clang_getTypeDeclaration
func (t *Type) wrapTypeDeclaration(ret *Cursor) { return }
func (t Type) TypeDeclaration() (ret Cursor) {
t.wrapTypeDeclaration(&ret)
return
}
/**
* Retrieve the spelling of a given CXTypeKind.
*/
@@ -1995,6 +2006,14 @@ func (t Type) ArgType(index c.Uint) (ret Type) {
return
}
/**
* Return 1 if the CXType is a variadic function type, and 0 otherwise.
*/
// llgo:link (*Type).wrapIsFunctionTypeVariadic C.wrap_clang_isFunctionTypeVariadic
func (t *Type) wrapIsFunctionTypeVariadic() (ret c.Uint) { return 0 }
func (t Type) IsFunctionTypeVariadic() (ret c.Uint) { return t.wrapIsFunctionTypeVariadic() }
/**
* Retrieve the return type associated with a given cursor.
*
@@ -2159,6 +2178,14 @@ func (c Cursor) String() (ret String) {
return c.wrapString()
}
/**
* Returns non-zero if the given cursor is a variadic function or method.
*/
// llgo:link (*Cursor).wrapIsVariadic C.wrap_clang_Cursor_isVariadic
func (*Cursor) wrapIsVariadic() (ret c.Uint) { return 0 }
func (c Cursor) IsVariadic() (ret c.Uint) { return c.wrapIsVariadic() }
/**
* Given a cursor that represents a declaration, return the associated
* comment text, including comment markers.