コード例 #1
0
ファイル: completionstring_gen.go プロジェクト: go-clang/v3.4
/*
	Determine the priority of this code completion.

	The priority of a code completion indicates how likely it is that this
	particular completion is the completion that the user will select. The
	priority is selected by various internal heuristics.

	Parameter completion_string The completion string to query.

	Returns The priority of this completion string. Smaller values indicate
	higher-priority (more likely) completions.
*/
func (cs CompletionString) Priority() uint32 {
	return uint32(C.clang_getCompletionPriority(cs.c))
}
コード例 #2
0
ファイル: complete.go プロジェクト: zimmski/go-clang
/**
 * \brief Determine the priority of this code completion.
 *
 * The priority of a code completion indicates how likely it is that this
 * particular completion is the completion that the user will select. The
 * priority is selected by various internal heuristics.
 *
 * \param completion_string The completion string to query.
 *
 * \returns The priority of this completion string. Smaller values indicate
 * higher-priority (more likely) completions.
 */
func (cs CompletionString) Priority() int {
	return int(C.clang_getCompletionPriority(cs.c))
}