示例#1
0
/**
 * \brief A \c CXComment_Paragraph node is considered whitespace if it contains
 * only \c CXComment_Text nodes that are empty or whitespace.
 *
 * Other AST nodes (except \c CXComment_Paragraph and \c CXComment_Text) are
 * never considered whitespace.
 *
 * \returns non-zero if \c Comment is whitespace.
 */
func (c Comment) IsWhitespace() bool {
	o := C.clang_Comment_isWhitespace(c.c)
	if o != 0 {
		return true
	}
	return false
}
示例#2
0
/*
	A CXComment_Paragraph node is considered whitespace if it contains
	only CXComment_Text nodes that are empty or whitespace.

	Other AST nodes (except CXComment_Paragraph and CXComment_Text) are
	never considered whitespace.

	Returns non-zero if Comment is whitespace.
*/
func (c Comment) IsWhitespace() bool {
	o := C.clang_Comment_isWhitespace(c.c)

	return o != C.uint(0)
}