Home | History | Annotate | Download | only in libclang

Lines Matching refs:CXSourceLocation

1 //===- CXSourceLocation.cpp - CXSourceLocations APIs ------------*- C++ -*-===//
18 #include "CXSourceLocation.h"
31 static bool isASTUnitSourceLocation(const CXSourceLocation &L) {
33 // pointer, or the CXSourceLocation is a null location.
43 CXSourceLocation clang_getNullLocation() {
44 CXSourceLocation Result = { { nullptr, nullptr }, 0 };
48 unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) {
59 CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) {
89 CXSourceLocation clang_getRangeStart(CXSourceRange range) {
92 CXSourceLocation Result = { { range.ptr_data[0], nullptr }, 0 };
96 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] },
101 CXSourceLocation clang_getRangeEnd(CXSourceRange range) {
104 CXSourceLocation Result = { { range.ptr_data[1], nullptr }, 0 };
108 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] },
121 CXSourceLocation clang_getLocation(CXTranslationUnit TU,
146 CXSourceLocation CXLoc =
155 CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU,
211 int clang_Location_isInSystemHeader(CXSourceLocation location) {
222 int clang_Location_isFromMainFile(CXSourceLocation location) {
233 void clang_getExpansionLocation(CXSourceLocation location,
275 void clang_getPresumedLocation(CXSourceLocation location,
307 void clang_getInstantiationLocation(CXSourceLocation location,
316 void clang_getSpellingLocation(CXSourceLocation location,
354 void clang_getFileLocation(CXSourceLocation location,