[clang-tools-extra] Be more permissive on spaces in command line argument parsing (PR #205111)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 07:07:35 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Walter Lee (googlewalt)
<details>
<summary>Changes</summary>
Fixes c888371ff0a3e10f8472676dc992f4347fca58d9.
This change properly accommodates both presence and absence of extra trailing arguments like -resource-dir.
---
Full diff: https://github.com/llvm/llvm-project/pull/205111.diff
1 Files Affected:
- (modified) clang-tools-extra/clangd/test/did-change-configuration-params.test (+1-1)
``````````diff
diff --git a/clang-tools-extra/clangd/test/did-change-configuration-params.test b/clang-tools-extra/clangd/test/did-change-configuration-params.test
index 08c7b4bcb57ad..f922dc5508f6f 100644
--- a/clang-tools-extra/clangd/test/did-change-configuration-params.test
+++ b/clang-tools-extra/clangd/test/did-change-configuration-params.test
@@ -48,7 +48,7 @@
#
# ERR: ASTWorker building file {{.*}}foo.c version 0 with command
# ERR: [{{.*}}clangd-test2]
-# ERR: clang -c -Wall -Werror {{.*}} -- {{.*}}foo.c
+# ERR: clang -c -Wall -Werror{{.*}} -- {{.*}}foo.c
---
{"jsonrpc":"2.0","id":5,"method":"shutdown"}
---
``````````
</details>
https://github.com/llvm/llvm-project/pull/205111
More information about the cfe-commits
mailing list