diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-26 19:19:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-26 19:19:08 +0000 |
commit | 46766dc31c09d89024de5aba9e22112a56eadbdf (patch) | |
tree | f0ee5964f39cc0ff703bf2048620f75261119653 /include | |
parent | 30a8a272f091054ce92b9daa1992bcff887c3ee4 (diff) |
Eliminate clang_getInstantiationLocationOffset(), and instead add an
offset parameter to clang_getInstantiationLocation().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang-c/Index.h | 28 |
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 |