From 3bf168a2d202e69989302ad1699c6e0d60af5f3f Mon Sep 17 00:00:00 2001 From: A2va <49582555+A2va@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:59:06 +0100 Subject: Add all option to format --- xmake/plugins/format/xmake.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/plugins/format/xmake.lua') diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua index 7979bb211..2acdf7176 100644 --- a/xmake/plugins/format/xmake.lua +++ b/xmake/plugins/format/xmake.lua @@ -28,6 +28,7 @@ task("format") {'s', "style", "kv", nil, "Set the path of .clang-format file, a coding style", values = {"LLVM", "Google", "Chromium", "Mozilla", "WebKit"}}, {nil, "create", "k", nil, "Create a .clang-format file from a coding style"}, + {'a', "all", "k", nil , "Format all targets."}, {'g', "group", "kv", nil, "Format all targets of the given group. It support path pattern matching.", "e.g.", " xmake format -g test", -- cgit v1.3.1 From f137fce1fd26460ee993218bd676e9095f239ebe Mon Sep 17 00:00:00 2001 From: A2va <49582555+A2va@users.noreply.github.com> Date: Thu, 22 Feb 2024 22:02:18 +0100 Subject: format --- xmake/plugins/format/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/format/xmake.lua') diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua index 2acdf7176..62cb99950 100644 --- a/xmake/plugins/format/xmake.lua +++ b/xmake/plugins/format/xmake.lua @@ -28,7 +28,7 @@ task("format") {'s', "style", "kv", nil, "Set the path of .clang-format file, a coding style", values = {"LLVM", "Google", "Chromium", "Mozilla", "WebKit"}}, {nil, "create", "k", nil, "Create a .clang-format file from a coding style"}, - {'a', "all", "k", nil , "Format all targets."}, + {'a', "all", "k", nil, "Format all targets."}, {'g', "group", "kv", nil, "Format all targets of the given group. It support path pattern matching.", "e.g.", " xmake format -g test", -- cgit v1.3.1 From 2ea998a51ab8327571da3c113d333d5fc0276e13 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 23 Feb 2024 08:59:28 +0800 Subject: Update xmake.lua --- xmake/plugins/format/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/plugins/format/xmake.lua') diff --git a/xmake/plugins/format/xmake.lua b/xmake/plugins/format/xmake.lua index 62cb99950..4d1b2a6f8 100644 --- a/xmake/plugins/format/xmake.lua +++ b/xmake/plugins/format/xmake.lua @@ -28,8 +28,8 @@ task("format") {'s', "style", "kv", nil, "Set the path of .clang-format file, a coding style", values = {"LLVM", "Google", "Chromium", "Mozilla", "WebKit"}}, {nil, "create", "k", nil, "Create a .clang-format file from a coding style"}, - {'a', "all", "k", nil, "Format all targets."}, - {'g', "group", "kv", nil, "Format all targets of the given group. It support path pattern matching.", + {'a', "all", "k", nil, "Format all targets."}, + {'g', "group", "kv", nil, "Format all targets of the given group. It support path pattern matching.", "e.g.", " xmake format -g test", " xmake format -g test_*", -- cgit v1.3.1