[clang] 12c0823 - [clang-format] Handle spaces in file paths in git-clang-format.bat (#107041)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 19:06:44 PDT 2024
Author: Owen Pan
Date: 2024-09-03T19:06:40-07:00
New Revision: 12c0823d67a8d5a61d6430aac609ef5e468267a6
URL: https://github.com/llvm/llvm-project/commit/12c0823d67a8d5a61d6430aac609ef5e468267a6
DIFF: https://github.com/llvm/llvm-project/commit/12c0823d67a8d5a61d6430aac609ef5e468267a6.diff
LOG: [clang-format] Handle spaces in file paths in git-clang-format.bat (#107041)
This patch is provided by @jeliebig.
Fixes #107017.
Added:
Modified:
clang/tools/clang-format/git-clang-format.bat
Removed:
################################################################################
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