예제 #1
0
/**
 * \brief Retrieve the physical location of the source constructor referenced
 * by the given cursor.
 *
 * The location of a declaration is typically the location of the name of that
 * declaration, where the name of that declaration would occur if it is
 * unnamed, or some keyword that introduces that particular declaration.
 * The location of a reference is where that reference occurs within the
 * source code.
 */
func (c Cursor) Location() SourceLocation {
	o := C.clang_getCursorLocation(c.c)
	return SourceLocation{o}
}
예제 #2
0
파일: cursor_gen.go 프로젝트: go-clang/v3.6
/*
	Retrieve the physical location of the source constructor referenced
	by the given cursor.

	The location of a declaration is typically the location of the name of that
	declaration, where the name of that declaration would occur if it is
	unnamed, or some keyword that introduces that particular declaration.
	The location of a reference is where that reference occurs within the
	source code.
*/
func (c Cursor) Location() SourceLocation {
	return SourceLocation{C.clang_getCursorLocation(c.c)}
}