[clang] [clang-format] Handle spaces in file paths in git-clang-format.bat (PR #107041)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 19:39:45 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-format

Author: Owen Pan (owenca)

<details>
<summary>Changes</summary>

This patch is provided by @<!-- -->jeliebig.

Fixes #<!-- -->107017.

---
Full diff: https://github.com/llvm/llvm-project/pull/107041.diff


1 Files Affected:

- (modified) clang/tools/clang-format/git-clang-format.bat (+1-1) 


``````````diff
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" %*

``````````

</details>


https://github.com/llvm/llvm-project/pull/107041


More information about the cfe-commits mailing list