aboutsummaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-11 22:29:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-11 22:29:47 +0000
commite2748288a04cda2e976a3fe859e4334afaf9274a (patch)
treedbe520f14c800e045ba29419516cf813055442e8 /include/clang-c
parent814b51a3d572d4e4107e67d549c8a82484ce8160 (diff)
[libclang] Add some constness in CXSourceLocation and CXSourceRange.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 0214a7da6d..6fa8296bdf 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -342,7 +342,7 @@ CINDEX_LINKAGE CXFile clang_getFile(CXTranslationUnit tu,
* to map a source location to a particular file, line, and column.
*/
typedef struct {
- void *ptr_data[2];
+ const void *ptr_data[2];
unsigned int_data;
} CXSourceLocation;
@@ -353,7 +353,7 @@ typedef struct {
* starting and end locations from a source range, respectively.
*/
typedef struct {
- void *ptr_data[2];
+ const void *ptr_data[2];
unsigned begin_int_data;
unsigned end_int_data;
} CXSourceRange;