c/clang: castdump

This commit is contained in:
xushiwei
2024-07-15 01:07:26 +08:00
parent cbe190fa70
commit 0b0cecc2a9
5 changed files with 55 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ type TranslationUnit struct {
/**
* Destroy the specified CXTranslationUnit object.
*/
// llgo:linke (*TranslationUnit).Dispose C.clang_disposeTranslationUnit
// llgo:link (*TranslationUnit).Dispose C.clang_disposeTranslationUnit
func (*TranslationUnit) Dispose() {}
/**
@@ -204,11 +204,14 @@ type Cursor struct {
/**
* Retrieve a name for the entity referenced by this cursor.
*/
// llgo:link C.clang_getCursorSpelling
// llgo:link Cursor.String C.clang_getCursorSpelling
func (Cursor) String() (ret String) {
return
}
//go:linkname GetCursorSpelling C.clang_getCursorSpelling
func GetCursorSpelling(cursor Cursor) String
/**
* Describes how the traversal of the children of a particular
* cursor should proceed after visiting a particular child cursor.