summaryrefslogtreecommitdiffstats
path: root/clang/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
commit49d9d029474a58f4fabfc98edbe726231f44b988 (patch)
tree404b276b06e28ffc4d323bc4641397618cc55ce9 /clang/include/clang-c
parent928e1fdeccff04dfdb588773262c03bb64031431 (diff)
downloadbcm5719-llvm-49d9d029474a58f4fabfc98edbe726231f44b988.tar.gz
bcm5719-llvm-49d9d029474a58f4fabfc98edbe726231f44b988.zip
[libclang] Add some constness in CXSourceLocation and CXSourceRange.
llvm-svn: 172261
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 0214a7da6d9..6fa8296bdfb 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/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;
OpenPOWER on IntegriCloud