aboutsummaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-23 19:35:14 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-23 19:35:14 +0000
commitab4e83b904d81d8ab1f8c594655822a023cad87d (patch)
treee3485bba371f9177d6e58a09cabaf85c6fca085b /include/clang-c
parent2da9f5d4a801c084c6ef1ec116811716279ccbec (diff)
Extend libclang with clang_equalRanges, from Erik Verbruggen!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 236594ab7c..88aaa385b9 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -328,6 +328,14 @@ CINDEX_LINKAGE CXSourceRange clang_getRange(CXSourceLocation begin,
CXSourceLocation end);
/**
+ * \brief Determine whether two ranges are equivalent.
+ *
+ * \returns non-zero if the ranges are the same, zero if they differ.
+ */
+CINDEX_LINKAGE unsigned clang_equalRanges(CXSourceRange range1,
+ CXSourceRange range2);
+
+/**
* \brief Retrieve the file, line, column, and offset represented by
* the given source location.
*