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 | 3c7313d96cd4a18cd8c1fcd3ddd8128c2fcbe58f (patch) | |
tree | fc5db9d525bbf2a1e31262181855daaeb9828923 /tools/c-index-test/c-index-test.c | |
parent | 6483a773db4d0ea3ab15de5801abe504c1dbc204 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index db95644c4c..e3d6ad88bb 100644 --- a/tools/c-index-test/c-index-test.c +++ b/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); |