Lines Matching defs:location
34 // pointer, or the CXSourceLocation is a null location.
213 int clang_Location_isInSystemHeader(CXSourceLocation location) {
215 SourceLocation::getFromRawEncoding(location.int_data);
220 *static_cast<const SourceManager*>(location.ptr_data[0]);
224 int clang_Location_isFromMainFile(CXSourceLocation location) {
226 SourceLocation::getFromRawEncoding(location.int_data);
231 *static_cast<const SourceManager*>(location.ptr_data[0]);
235 void clang_getExpansionLocation(CXSourceLocation location,
240 if (!isASTUnitSourceLocation(location)) {
241 CXLoadedDiagnostic::decodeLocation(location, file, line, column, offset);
245 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
247 if (!location.ptr_data[0] || Loc.isInvalid()) {
253 *static_cast<const SourceManager*>(location.ptr_data[0]);
256 // Check that the FileID is invalid on the expansion location.
276 void clang_getPresumedLocation(CXSourceLocation location,
280 if (!isASTUnitSourceLocation(location)) {
287 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
289 if (!location.ptr_data[0] || Loc.isInvalid()) {
295 *static_cast<const SourceManager *>(location.ptr_data[0]);
307 void clang_getInstantiationLocation(CXSourceLocation location,
313 clang_getExpansionLocation(location, file, line, column, offset);
316 void clang_getSpellingLocation(CXSourceLocation location,
321 if (!isASTUnitSourceLocation(location)) {
322 CXLoadedDiagnostic::decodeLocation(location, file, line,
327 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
329 if (!location.ptr_data[0] || Loc.isInvalid())
333 *static_cast<const SourceManager*>(location.ptr_data[0]);
352 void clang_getFileLocation(CXSourceLocation location,
357 if (!isASTUnitSourceLocation(location)) {
358 CXLoadedDiagnostic::decodeLocation(location, file, line,
363 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
365 if (!location.ptr_data[0] || Loc.isInvalid())
369 *static_cast<const SourceManager*>(location.ptr_data[0]);