[libcxx-commits] [libcxx] [regex] fix uncaught exception when string is like "\\_" (PR #129348)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 1 03:03:45 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a955426a16bcbb9bf05eb0e3894663dff4983b00 2855a30a6238cb5184e0301a49d9d728497c2f0c --extensions ,cpp -- libcxx/include/regex libcxx/test/std/re/re.regex/re.regex.construct/ptr.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/ptr.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/ptr.pass.cpp
index a23900d445..8d7537cf82 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/ptr.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/ptr.pass.cpp
@@ -33,5 +33,5 @@ int main(int, char**)
     test("(a([bc]))", 2);
     test("\\$\\_se", 0);
 
-  return 0;
+    return 0;
 }

``````````

</details>


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


More information about the libcxx-commits mailing list