c/clang:anonymous record

This commit is contained in:
luoliwoshang
2024-08-21 14:55:43 +08:00
parent 46aec4a593
commit 64b582e397
2 changed files with 32 additions and 0 deletions

View File

@@ -72,6 +72,12 @@ enum CX_CXXAccessSpecifier wrap_clang_getCXXAccessSpecifier(CXCursor *cursor) {
return clang_getCXXAccessSpecifier(*cursor); return clang_getCXXAccessSpecifier(*cursor);
} }
unsigned wrap_clang_Cursor_isAnonymous(CXCursor *cursor) { return clang_Cursor_isAnonymous(*cursor); }
unsigned wrap_clang_Cursor_isAnonymousRecordDecl(CXCursor *cursor) {
return clang_Cursor_isAnonymousRecordDecl(*cursor);
}
CXString wrap_clang_Cursor_getRawCommentText(CXCursor *cursor) { return clang_Cursor_getRawCommentText(*cursor); } CXString wrap_clang_Cursor_getRawCommentText(CXCursor *cursor) { return clang_Cursor_getRawCommentText(*cursor); }
void wrap_clang_getCursorExtent(CXCursor *cur, CXSourceRange *range) { *range = clang_getCursorExtent(*cur); } void wrap_clang_getCursorExtent(CXCursor *cur, CXSourceRange *range) { *range = clang_getCursorExtent(*cur); }

View File

@@ -1673,6 +1673,32 @@ func (c Cursor) Location() (loc SourceLocation) {
return return
} }
/**
* Determine whether the given cursor represents an anonymous
* tag or namespace
*/
// llgo:link (*Cursor).wrapIsAnonymous C.wrap_clang_Cursor_isAnonymous
func (c *Cursor) wrapIsAnonymous() (ret c.Uint) {
return 0
}
func (c Cursor) IsAnonymous() (ret c.Uint) {
return c.wrapIsAnonymous()
}
/**
* Determine whether the given cursor represents an anonymous record
* declaration.
*/
// llgo:link (*Cursor).wrapIsAnonymousRecordDecl C.wrap_clang_Cursor_isAnonymousRecordDecl
func (c *Cursor) wrapIsAnonymousRecordDecl() (ret c.Uint) {
return 0
}
func (c Cursor) IsAnonymousRecordDecl() (ret c.Uint) {
return c.wrapIsAnonymousRecordDecl()
}
/** /**
* Represents the C++ access control level to a base class for a * Represents the C++ access control level to a base class for a
* cursor with kind CX_CXXBaseSpecifier. * cursor with kind CX_CXXBaseSpecifier.