diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-18 22:13:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-18 22:13:09 +0000 |
commit | 49c4baf4301676abcd7e38dc8d1d37c94ddb6e6f (patch) | |
tree | 49bc114ebd520fcbba44fdccfa9b68f5fab82b2e /clang/tools/c-index-test/c-index-test.c | |
parent | 85b27528fc661b695b3f2688ad6f2f9c85940dc2 (diff) | |
download | bcm5719-llvm-49c4baf4301676abcd7e38dc8d1d37c94ddb6e6f.tar.gz bcm5719-llvm-49c4baf4301676abcd7e38dc8d1d37c94ddb6e6f.zip |
Clean up the CIndex API slightly.
Renamed CXSourceFileLine to CXSourceLocation and added a CXFile, to
better match Clang's SourceLocation. Teach clang_getDeclExtent to fill
in the CXFile properly.
Renamed CXSourceExtent to CXSourceRange, to better match Clang's
SourceLocation.
llvm-svn: 93783
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index db95644c4cf..e3d6ad88bb8 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -74,7 +74,7 @@ static const char* GetCursorSource(CXCursor Cursor) { static const char *FileCheckPrefix = "CHECK"; static void PrintDeclExtent(CXDecl Dcl) { - CXSourceExtent extent; + CXSourceRange extent; if (!Dcl) return; extent = clang_getDeclExtent(Dcl); |