Example #1
0
// EqualLocations determines whether two source locations, which must refer into
// the same translation unit, refer to exactly the same point in the source
// code.
// Returns non-zero if the source locations refer to the same location, zero
// if they refer to different locations.
func EqualLocations(loc1, loc2 SourceLocation) bool {
	o := C.clang_equalLocations(loc1.c, loc2.c)
	if o != C.uint(0) {
		return true
	}
	return false
}
Example #2
0
/*
	Determine whether two source locations, which must refer into
	the same translation unit, refer to exactly the same point in the source
	code.

	Returns non-zero if the source locations refer to the same location, zero
	if they refer to different locations.
*/
func (sl SourceLocation) Equal(sl2 SourceLocation) bool {
	o := C.clang_equalLocations(sl.c, sl2.c)

	return o != C.uint(0)
}