aboutsummaryrefslogtreecommitdiff
path: root/clang/test/ExtractAPI/method_template_spec.cpp
diff options
context:
space:
mode:
authorQuietMisdreavus <QuietMisdreavus@users.noreply.github.com>2023-11-14 04:46:12 -0700
committerGitHub <noreply@github.com>2023-11-14 11:46:12 +0000
commit63537872aefe845ba40770112d0a2cf0927f27b8 (patch)
tree9d5f377adf06b3d70823a2437b608c552410b780 /clang/test/ExtractAPI/method_template_spec.cpp
parentcc1244980b74f45a06e2002a33444ce757b577aa (diff)
downloadllvm-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/method_template_spec.cpp')
-rw-r--r--clang/test/ExtractAPI/method_template_spec.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/ExtractAPI/method_template_spec.cpp b/clang/test/ExtractAPI/method_template_spec.cpp
index c3ba262..706d99d 100644
--- a/clang/test/ExtractAPI/method_template_spec.cpp
+++ b/clang/test/ExtractAPI/method_template_spec.cpp
@@ -89,8 +89,8 @@ class Foo {
},
"location": {
"position": {
- "character": 7,
- "line": 1
+ "character": 6,
+ "line": 0
},
"uri": "file://INPUT_DIR/input.h"
},
@@ -214,8 +214,8 @@ class Foo {
},
"location": {
"position": {
- "character": 29,
- "line": 2
+ "character": 28,
+ "line": 1
},
"uri": "file://INPUT_DIR/input.h"
},
@@ -342,8 +342,8 @@ class Foo {
},
"location": {
"position": {
- "character": 19,
- "line": 4
+ "character": 18,
+ "line": 3
},
"uri": "file://INPUT_DIR/input.h"
},