Lines Matching refs:location
211 int clang_Location_isInSystemHeader(CXSourceLocation location) { in clang_Location_isInSystemHeader() argument
213 SourceLocation::getFromRawEncoding(location.int_data); in clang_Location_isInSystemHeader()
218 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isInSystemHeader()
222 int clang_Location_isFromMainFile(CXSourceLocation location) { in clang_Location_isFromMainFile() argument
224 SourceLocation::getFromRawEncoding(location.int_data); in clang_Location_isFromMainFile()
229 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_Location_isFromMainFile()
233 void clang_getExpansionLocation(CXSourceLocation location, in clang_getExpansionLocation() argument
239 if (!isASTUnitSourceLocation(location)) { in clang_getExpansionLocation()
240 CXLoadedDiagnostic::decodeLocation(location, file, line, column, offset); in clang_getExpansionLocation()
244 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getExpansionLocation()
246 if (!location.ptr_data[0] || Loc.isInvalid()) { in clang_getExpansionLocation()
252 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getExpansionLocation()
275 void clang_getPresumedLocation(CXSourceLocation location, in clang_getPresumedLocation() argument
280 if (!isASTUnitSourceLocation(location)) { in clang_getPresumedLocation()
287 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getPresumedLocation()
289 if (!location.ptr_data[0] || Loc.isInvalid()) { in clang_getPresumedLocation()
295 *static_cast<const SourceManager *>(location.ptr_data[0]); in clang_getPresumedLocation()
307 void clang_getInstantiationLocation(CXSourceLocation location, in clang_getInstantiationLocation() argument
313 clang_getExpansionLocation(location, file, line, column, offset); in clang_getInstantiationLocation()
316 void clang_getSpellingLocation(CXSourceLocation location, in clang_getSpellingLocation() argument
322 if (!isASTUnitSourceLocation(location)) { in clang_getSpellingLocation()
323 CXLoadedDiagnostic::decodeLocation(location, file, line, in clang_getSpellingLocation()
328 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getSpellingLocation()
330 if (!location.ptr_data[0] || Loc.isInvalid()) in clang_getSpellingLocation()
334 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getSpellingLocation()
354 void clang_getFileLocation(CXSourceLocation location, in clang_getFileLocation() argument
360 if (!isASTUnitSourceLocation(location)) { in clang_getFileLocation()
361 CXLoadedDiagnostic::decodeLocation(location, file, line, in clang_getFileLocation()
366 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); in clang_getFileLocation()
368 if (!location.ptr_data[0] || Loc.isInvalid()) in clang_getFileLocation()
372 *static_cast<const SourceManager*>(location.ptr_data[0]); in clang_getFileLocation()