コード例 #1
0
ファイル: clang.go プロジェクト: quarnster/go-clang
// NewRange creates a source range given the beginning and ending source
// locations.
func NewRange(beg, end SourceLocation) SourceRange {
	o := C.clang_getRange(beg.c, end.c)
	return SourceRange{o}
}
コード例 #2
0
ファイル: sourcelocation_gen.go プロジェクト: go-clang/v3.4
// Retrieve a source range given the beginning and ending source locations.
func (sl SourceLocation) Range(end SourceLocation) SourceRange {
	return SourceRange{C.clang_getRange(sl.c, end.c)}
}