diff options
author | QuietMisdreavus <QuietMisdreavus@users.noreply.github.com> | 2023-11-14 04:46:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 11:46:12 +0000 |
commit | 63537872aefe845ba40770112d0a2cf0927f27b8 (patch) | |
tree | 9d5f377adf06b3d70823a2437b608c552410b780 /clang/test/ExtractAPI/known_files_only.c | |
parent | cc1244980b74f45a06e2002a33444ce757b577aa (diff) | |
download | llvm-63537872aefe845ba40770112d0a2cf0927f27b8.zip llvm-63537872aefe845ba40770112d0a2cf0927f27b8.tar.gz llvm-63537872aefe845ba40770112d0a2cf0927f27b8.tar.bz2 |
ExtractAPI: use zero-based indices for line/column in symbol graph (#71753)
Other implementations of the symbol graph format use zero-based indices
for source locations, which causes problems when combined with clang's
current one-based indices. This commit sets ExtractAPI's symbol graph
output to use zero-based indices to align with other implementations.
rdar://107639783
Diffstat (limited to 'clang/test/ExtractAPI/known_files_only.c')
-rw-r--r-- | clang/test/ExtractAPI/known_files_only.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/ExtractAPI/known_files_only.c b/clang/test/ExtractAPI/known_files_only.c index 1e51139..68881aa 100644 --- a/clang/test/ExtractAPI/known_files_only.c +++ b/clang/test/ExtractAPI/known_files_only.c @@ -82,8 +82,8 @@ struct Foo { int a; }; }, "location": { "position": { - "character": 5, - "line": 1 + "character": 4, + "line": 0 }, "uri": "file://INPUT_DIR/input1.h" }, |