コード例 #1
0
ファイル: comment.go プロジェクト: zimmski/go-clang
/**
 * \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
ファイル: comment_gen.go プロジェクト: go-clang/v3.7
/*
	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)
}