summaryrefslogtreecommitdiffstats
path: root/clang/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
commit757e38b47e0056d3fb56e16c9f7af0bd287d8bf6 (patch)
tree8fa636b67463daddb0c4ceb1329bff500eada124 /clang/include/clang-c
parentc14b763865d0c8c3dab5f6197d948f12e4d4f58b (diff)
downloadbcm5719-llvm-757e38b47e0056d3fb56e16c9f7af0bd287d8bf6.tar.gz
bcm5719-llvm-757e38b47e0056d3fb56e16c9f7af0bd287d8bf6.zip
Extend libclang with clang_equalRanges, from Erik Verbruggen!
llvm-svn: 135860
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 236594ab7c3..88aaa385b98 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/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.
*
OpenPOWER on IntegriCloud