[clang-tools-extra] [clang-tidy] Avoid replacing match_results length() with empty() (PR #234905)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 06:55:02 PDT 2026


================
@@ -1090,3 +1091,55 @@ bool testDependentValidContainer(TemplatedContainer<T> c) {
 }
 template bool testDependentValidContainer<int>(TemplatedContainer<int>);
 }
+
+void testRegexMatchResults() {
+  std::smatch sm;
----------------
vbvictor wrote:

add tests with `typedef ..`, `using my_match = std::smatch`.

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


More information about the cfe-commits mailing list