예제 #1
0
/**
 * \brief Retrieve a Unified Symbol Resolution (USR) for the entity referenced
 * by the given cursor.
 *
 * A Unified Symbol Resolution (USR) is a string that identifies a particular
 * entity (function, class, variable, etc.) within a program. USRs can be
 * compared across translation units to determine, e.g., when references in
 * one translation refer to an entity defined in another translation unit.
 */
func (c Cursor) USR() string {
	cstr := cxstring{C.clang_getCursorUSR(c.c)}
	defer cstr.Dispose()
	return cstr.String()
}
예제 #2
0
파일: cursor_gen.go 프로젝트: go-clang/v3.6
/*
	Retrieve a Unified Symbol Resolution (USR) for the entity referenced
	by the given cursor.

	A Unified Symbol Resolution (USR) is a string that identifies a particular
	entity (function, class, variable, etc.) within a program. USRs can be
	compared across translation units to determine, e.g., when references in
	one translation refer to an entity defined in another translation unit.
*/
func (c Cursor) USR() string {
	o := cxstring{C.clang_getCursorUSR(c.c)}
	defer o.Dispose()

	return o.String()
}