From 206fcbb3922f45249a0f20edb6ac5493d7db1b81 Mon Sep 17 00:00:00 2001 From: AJIOB Date: Mon, 29 Sep 2025 09:36:51 +0300 Subject: [PATCH] Tests/RunCMake/FileAPI: Fix whitespace in codemodel-v2 expectation data --- .../codemodel-v2-data/targets/c_subdir.json | 36 ++++++------ .../codemodel-v2-data/targets/cxx_exe.json | 56 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/c_subdir.json b/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/c_subdir.json index 961b361d11..c4a82892bb 100644 --- a/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/c_subdir.json +++ b/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/c_subdir.json @@ -47,24 +47,24 @@ "^subdir/empty\\.c$" ], "includes": [ - { - "path": "^.*/Tests/RunCMake/FileAPI/subdir$", - "isSystem": null, - "backtrace": [ - { - "file": "^subdir/CMakeLists\\.txt$", - "line": 2, - "command": "target_include_directories", - "hasParent": true - }, - { - "file": "^subdir/CMakeLists\\.txt$", - "line": null, - "command": null, - "hasParent": false - } - ] - } + { + "path": "^.*/Tests/RunCMake/FileAPI/subdir$", + "isSystem": null, + "backtrace": [ + { + "file": "^subdir/CMakeLists\\.txt$", + "line": 2, + "command": "target_include_directories", + "hasParent": true + }, + { + "file": "^subdir/CMakeLists\\.txt$", + "line": null, + "command": null, + "hasParent": false + } + ] + } ], "frameworks": null, "defines": [ diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/cxx_exe.json b/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/cxx_exe.json index 1a56f3ef10..24255b380a 100644 --- a/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/cxx_exe.json +++ b/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/cxx_exe.json @@ -50,27 +50,27 @@ "frameworks": null, "defines": null, "precompileHeaders": [ - { - "header": ".*empty\\.h$", - "backtrace": [ - { - "file": "^cxx/CMakeLists\\.txt$", - "line": 23, - "command": "target_precompile_headers", - "hasParent": true - }, - { - "file": "^cxx/CMakeLists\\.txt$", - "line": null, - "command": null, - "hasParent": false - } - ] - } + { + "header": ".*empty\\.h$", + "backtrace": [ + { + "file": "^cxx/CMakeLists\\.txt$", + "line": 23, + "command": "target_precompile_headers", + "hasParent": true + }, + { + "file": "^cxx/CMakeLists\\.txt$", + "line": null, + "command": null, + "hasParent": false + } + ] + } ], "compileCommandFragments": [ { - "fragment" : "TargetCompileOptions", + "fragment": "TargetCompileOptions", "backtrace": [ { "file": "^cxx/CMakeLists\\.txt$", @@ -79,7 +79,7 @@ "hasParent": true }, { - "file" : "^cxx/CMakeLists\\.txt$", + "file": "^cxx/CMakeLists\\.txt$", "line": null, "command": null, "hasParent": false @@ -173,8 +173,8 @@ "lto": null, "commandFragments": [ { - "fragment" : "TargetLinkOptions", - "role" : "flags", + "fragment": "TargetLinkOptions", + "role": "flags", "backtrace": [ { "file": "^cxx/CMakeLists\\.txt$", @@ -183,7 +183,7 @@ "hasParent": true }, { - "file" : "^cxx/CMakeLists\\.txt$", + "file": "^cxx/CMakeLists\\.txt$", "line": null, "command": null, "hasParent": false @@ -191,8 +191,8 @@ ] }, { - "fragment" : ".*TargetLinkDir\\\"?$", - "role" : "libraryPath", + "fragment": ".*TargetLinkDir\\\"?$", + "role": "libraryPath", "backtrace": [ { "file": "^cxx/CMakeLists\\.txt$", @@ -201,7 +201,7 @@ "hasParent": true }, { - "file" : "^cxx/CMakeLists\\.txt$", + "file": "^cxx/CMakeLists\\.txt$", "line": null, "command": null, "hasParent": false @@ -209,8 +209,8 @@ ] }, { - "fragment" : ".*cxx_lib.*", - "role" : "libraries", + "fragment": ".*cxx_lib.*", + "role": "libraries", "backtrace": [ { "file": "^cxx/CMakeLists\\.txt$", @@ -219,7 +219,7 @@ "hasParent": true }, { - "file" : "^cxx/CMakeLists\\.txt$", + "file": "^cxx/CMakeLists\\.txt$", "line": null, "command": null, "hasParent": false