aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clang-c/Index.h28
1 files changed, 7 insertions, 21 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index b041dcfd67..3a0260d86c 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -352,8 +352,8 @@ CINDEX_LINKAGE CXSourceRange clang_getRange(CXSourceLocation begin,
CXSourceLocation end);
/**
- * \brief Retrieve the file, line, and column represented by the given source
- * location.
+ * \brief Retrieve the file, line, column, and offset represented by
+ * the given source location.
*
* \param location the location within a source file that will be decomposed
* into its parts.
@@ -366,29 +366,15 @@ CINDEX_LINKAGE CXSourceRange clang_getRange(CXSourceLocation begin,
*
* \param column [out] if non-NULL, will be set to the column to which the given
* source location points.
+ *
+ * \param offset [out] if non-NULL, will be set to the offset into the
+ * buffer to which the given source location points.
*/
CINDEX_LINKAGE void clang_getInstantiationLocation(CXSourceLocation location,
CXFile *file,
unsigned *line,
- unsigned *column);
-
-/**
- * \brief Retrieve the file and offset within that file represented by
- * the given source location.
- *
- * \param location the location within a source file that will be decomposed
- * into its parts.
- *
- * \param file [out] if non-NULL, will be set to the file to which the
- * given source location points.
- *
- * \param offset [out] if non-NULL, will be set to the offset into the
- * \p file to which the given source location points.
- */
-CINDEX_LINKAGE void clang_getInstantiationLocationOffset(
- CXSourceLocation location,
- CXFile *File,
- unsigned *Offset);
+ unsigned *column,
+ unsigned *offset);
/**
* \brief Retrieve a source location representing the first character within a