[clang] [clang-format] Handle spaces in file paths in git-clang-format.bat (PR #107041)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 2 19:39:12 PDT 2024
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/107041
This patch is provided by @jeliebig.
Fixes #107017.
>From f44ecbe9880aba26ca02046dbe26582ea81abe73 Mon Sep 17 00:00:00 2001
From: Owen Pan <owenpiano at gmail.com>
Date: Mon, 2 Sep 2024 19:33:01 -0700
Subject: [PATCH] [clang-format] Handle spaces in file paths in
git-clang-format.bat
This patch is provided by @jeliebig.
Fixes #107017.
---
clang/tools/clang-format/git-clang-format.bat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/tools/clang-format/git-clang-format.bat b/clang/tools/clang-format/git-clang-format.bat
index 9965cd4312fe39..19c82d8a04132b 100644
--- a/clang/tools/clang-format/git-clang-format.bat
+++ b/clang/tools/clang-format/git-clang-format.bat
@@ -1 +1 @@
-py -3 %~pn0 %*
+py -3 "%~pn0" %*
More information about the cfe-commits
mailing list