Lines Matching +defs:file +defs:end

9 // This file defines routines for manipulating CXSourceLocations.
70 CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) {
72 if (isASTUnitSourceLocation(end))
74 CXSourceRange Result = { { begin.ptr_data[0], end.ptr_data[0] }, 0, 0 };
78 if (begin.ptr_data[0] != end.ptr_data[0] ||
79 begin.ptr_data[1] != end.ptr_data[1])
83 begin.int_data, end.int_data };
129 CXFile file,
136 if (!file)
144 FileEntryRef File = *cxfile::getFileEntryRef(file);
164 CXFile file,
170 if (!file)
176 = CXXUnit->getLocation(*cxfile::getFileEntryRef(file), offset);
189 static void createNullLocation(CXFile *file, unsigned *line,
191 if (file)
192 *file = nullptr;
236 CXFile *file,
241 CXLoadedDiagnostic::decodeLocation(location, file, line, column, offset);
248 createNullLocation(file, line, column, offset);
262 createNullLocation(file, line, column, offset);
266 if (file)
267 *file = cxfile::makeCXFile(SM.getFileEntryRefForID(fileID));
308 CXFile *file,
313 clang_getExpansionLocation(location, file, line, column, offset);
317 CXFile *file,
322 CXLoadedDiagnostic::decodeLocation(location, file, line,
330 return createNullLocation(file, line, column, offset);
340 return createNullLocation(file, line, column, offset);
342 if (file)
343 *file = cxfile::makeCXFile(SM.getFileEntryRefForID(FID));
353 CXFile *file,
358 CXLoadedDiagnostic::decodeLocation(location, file, line,
366 return createNullLocation(file, line, column, offset);
376 return createNullLocation(file, line, column, offset);
378 if (file)
379 *file = cxfile::makeCXFile(SM.getFileEntryRefForID(FID));