Esempio n. 1
0
/*
	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))
}
Esempio n. 2
0
/**
 * \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))
}