diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-14 10:02:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-14 10:02:57 +0000 |
commit | d52864bd33c66aacc84133460d8c9c0dfcdd5c18 (patch) | |
tree | 70ca9af6f2021bcbe3711f084583e35822c5bd04 /tools/c-index-test/c-index-test.c | |
parent | 19e4a07e7317eacf88247614c97f11ab93409a04 (diff) |
CIndex: Switch CXSourceRange to proper half-open intervals.
- Doug, please review.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96162 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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 1619616bb7..543e444dbf 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -34,9 +34,8 @@ static void PrintDiagnosticCallback(CXDiagnostic Diagnostic, static void PrintExtent(FILE *out, unsigned begin_line, unsigned begin_column, unsigned end_line, unsigned end_column) { - /* FIXME: Remove this + 1. */ fprintf(out, "[%d:%d - %d:%d]", begin_line, begin_column, - end_line, end_column + 1); + end_line, end_column); } static unsigned CreateTranslationUnit(CXIndex Idx, const char *file, @@ -616,7 +615,7 @@ static int perform_file_scan(const char *ast_file, const char *source_file, if ((c == EOF || !clang_equalCursors(cursor, prevCursor)) && prevCursor.kind != CXCursor_InvalidFile) { print_cursor_file_scan(prevCursor, start_line, start_col, - line, col - 1, prefix); + line, col, prefix); start_line = line; start_col = col; } |