GitNexus/gitnexus/test/fixtures/rename-integration/cpp/overload-header-call-chain/case.json

80 lines
1.6 KiB
JSON

{
"language": "cpp",
"warmParseCache": true,
"description": "Rename one overload across its header declaration, definition and typed call, preserving both an imported floating-point overload and a same-scope boolean overload.",
"categories": [
"cross-file",
"overloads",
"call-graph",
"declaration-family"
],
"target": {
"name": "compute",
"kind": "Function",
"file": "api.cpp",
"startLine": 1
},
"newName": "calculate",
"expect": {
"status": "success",
"edits": 3
},
"edges": [
{
"type": "CALLS",
"from": {
"name": "outer",
"kind": "Function",
"file": "main.cpp"
},
"to": {
"name": "middle",
"kind": "Function",
"file": "main.cpp"
}
},
{
"type": "CALLS",
"from": {
"name": "middle",
"kind": "Function",
"file": "main.cpp"
},
"to": {
"name": "compute",
"kind": "Function",
"file": "api.h",
"startLine": 0
}
},
{
"type": "CALLS",
"from": {
"name": "floating",
"kind": "Function",
"file": "main.cpp"
},
"to": {
"name": "compute",
"kind": "Function",
"file": "api.h",
"startLine": 1
}
},
{
"type": "CALLS",
"from": {
"name": "boolean",
"kind": "Function",
"file": "main.cpp"
},
"to": {
"name": "compute",
"kind": "Function",
"file": "main.cpp",
"startLine": 1
}
}
],
"exactOutgoing": true
}