Home | History | Annotate | Download | only in libclang

Lines Matching refs:location

33   // pointer, or the CXSourceLocation is a null location.
211 int clang_Location_isInSystemHeader(CXSourceLocation location) {
213 SourceLocation::getFromRawEncoding(location.int_data);
218 *static_cast<const SourceManager*>(location.ptr_data[0]);
222 int clang_Location_isFromMainFile(CXSourceLocation location) {
224 SourceLocation::getFromRawEncoding(location.int_data);
229 *static_cast<const SourceManager*>(location.ptr_data[0]);
233 void clang_getExpansionLocation(CXSourceLocation location,
239 if (!isASTUnitSourceLocation(location)) {
240 CXLoadedDiagnostic::decodeLocation(location, file, line, column, offset);
244 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
246 if (!location.ptr_data[0] || Loc.isInvalid()) {
252 *static_cast<const SourceManager*>(location.ptr_data[0]);
255 // Check that the FileID is invalid on the expansion location.
275 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,
322 if (!isASTUnitSourceLocation(location)) {
323 CXLoadedDiagnostic::decodeLocation(location, file, line,
328 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
330 if (!location.ptr_data[0] || Loc.isInvalid())
334 *static_cast<const SourceManager*>(location.ptr_data[0]);
354 void clang_getFileLocation(CXSourceLocation location,
360 if (!isASTUnitSourceLocation(location)) {
361 CXLoadedDiagnostic::decodeLocation(location, file, line,
366 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
368 if (!location.ptr_data[0] || Loc.isInvalid())
372 *static_cast<const SourceManager*>(location.ptr_data[0]);