当前位置: 首页>>代码示例>>Golang>>正文


Golang C.enum_CXCursorKind函数代码示例

本文整理汇总了Golang中C.enum_CXCursorKind函数的典型用法代码示例。如果您正苦于以下问题:Golang enum_CXCursorKind函数的具体用法?Golang enum_CXCursorKind怎么用?Golang enum_CXCursorKind使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了enum_CXCursorKind函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: Parent

/*
	Retrieve the parent context of the given completion string.

	The parent context of a completion string is the semantic parent of
	the declaration (if any) that the code completion represents. For example,
	a code completion for an Objective-C method would have the method's class
	or protocol as its context.

	Parameter completion_string The code completion string whose parent is
	being queried.

	Parameter kind DEPRECATED: always set to CXCursor_NotImplemented if non-NULL.

	Returns The name of the completion parent, e.g., "NSObject" if
	the completion string represents a method in the NSObject class.
*/
func (cs CompletionString) Parent(kind *CursorKind) string {
	var cp_kind C.enum_CXCursorKind
	if kind != nil {
		cp_kind = C.enum_CXCursorKind(*kind)
	}

	o := cxstring{C.clang_getCompletionParent(cs.c, &cp_kind)}
	defer o.Dispose()

	return o.String()
}
开发者ID:go-clang,项目名称:v3.4,代码行数:27,代码来源:completionstring_gen.go

示例2: Spelling

func (ck CursorKind) Spelling() string {
	o := cxstring{C.clang_getCursorKindSpelling(C.enum_CXCursorKind(ck))}
	defer o.Dispose()

	return o.String()
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例3: IsPreprocessing

// * Determine whether the given cursor represents a preprocessing element, such as a preprocessor directive or macro instantiation.
func (ck CursorKind) IsPreprocessing() bool {
	o := C.clang_isPreprocessing(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例4: IsUnexposed

// * Determine whether the given cursor represents a currently unexposed piece of the AST (e.g., CXCursor_UnexposedStmt).
func (ck CursorKind) IsUnexposed() bool {
	o := C.clang_isUnexposed(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例5: IsInvalid

// Determine whether the given cursor kind represents an invalid cursor.
func (ck CursorKind) IsInvalid() bool {
	o := C.clang_isInvalid(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例6: IsTranslationUnit

// Determine whether the given cursor kind represents a translation unit.
func (ck CursorKind) IsTranslationUnit() bool {
	o := C.clang_isTranslationUnit(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例7: IsAttribute

// Determine whether the given cursor kind represents an attribute.
func (ck CursorKind) IsAttribute() bool {
	o := C.clang_isAttribute(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例8: IsStatement

// Determine whether the given cursor kind represents a statement.
func (ck CursorKind) IsStatement() bool {
	o := C.clang_isStatement(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例9: IsExpression

// Determine whether the given cursor kind represents an expression.
func (ck CursorKind) IsExpression() bool {
	o := C.clang_isExpression(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go

示例10: IsReference

/*
	Determine whether the given cursor kind represents a simple
	reference.

	Note that other kinds of cursors (such as expressions) can also refer to
	other cursors. Use clang_getCursorReferenced() to determine whether a
	particular cursor refers to another entity.
*/
func (ck CursorKind) IsReference() bool {
	o := C.clang_isReference(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:13,代码来源:cursorkind_gen.go

示例11: IsDeclaration

// Determine whether the given cursor kind represents a declaration.
func (ck CursorKind) IsDeclaration() bool {
	o := C.clang_isDeclaration(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}
开发者ID:go-clang,项目名称:v3.6,代码行数:6,代码来源:cursorkind_gen.go


注:本文中的C.enum_CXCursorKind函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。