Lines Matching refs:location

200 int clang_Location_isInSystemHeader(CXSourceLocation location) {  in clang_Location_isInSystemHeader()  argument
202 SourceLocation::getFromRawEncoding(location.int_data); in clang_Location_isInSystemHeader()
207 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isInSystemHeader()
211 int clang_Location_isFromMainFile(CXSourceLocation location) { in clang_Location_isFromMainFile() argument
213 SourceLocation::getFromRawEncoding(location.int_data); in clang_Location_isFromMainFile()
218 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isFromMainFile()
222 void clang_getExpansionLocation(CXSourceLocation location, in clang_getExpansionLocation() argument
227 if (!isASTUnitSourceLocation(location)) { in clang_getExpansionLocation()
228 CXLoadedDiagnostic::decodeLocation(location, file, line, column, offset); in clang_getExpansionLocation()
232 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getExpansionLocation()
234 if (!location.ptr_data[0] || Loc.isInvalid()) { in clang_getExpansionLocation()
240 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getExpansionLocation()
263 void clang_getPresumedLocation(CXSourceLocation location, in clang_getPresumedLocation() argument
267 if (!isASTUnitSourceLocation(location)) { in clang_getPresumedLocation()
274 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getPresumedLocation()
276 if (!location.ptr_data[0] || Loc.isInvalid()) { in clang_getPresumedLocation()
282 *static_cast<const SourceManager *>(location.ptr_data[0]); in clang_getPresumedLocation()
294 void clang_getInstantiationLocation(CXSourceLocation location, in clang_getInstantiationLocation() argument
300 clang_getExpansionLocation(location, file, line, column, offset); in clang_getInstantiationLocation()
303 void clang_getSpellingLocation(CXSourceLocation location, in clang_getSpellingLocation() argument
308 if (!isASTUnitSourceLocation(location)) { in clang_getSpellingLocation()
309 CXLoadedDiagnostic::decodeLocation(location, file, line, in clang_getSpellingLocation()
314 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getSpellingLocation()
316 if (!location.ptr_data[0] || Loc.isInvalid()) in clang_getSpellingLocation()
320 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getSpellingLocation()
340 void clang_getFileLocation(CXSourceLocation location, in clang_getFileLocation() argument
345 if (!isASTUnitSourceLocation(location)) { in clang_getFileLocation()
346 CXLoadedDiagnostic::decodeLocation(location, file, line, in clang_getFileLocation()
351 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getFileLocation()
353 if (!location.ptr_data[0] || Loc.isInvalid()) in clang_getFileLocation()
357 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getFileLocation()