[clang-tools-extra] [clang-tidy] Add llvm-regex check (PR #207407)

via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 8 08:00:26 PDT 2026


================
@@ -0,0 +1,33 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_INVALIDREGEXPATTERNCHECK_H
+#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_INVALIDREGEXPATTERNCHECK_H
+
+#include "../ClangTidyCheck.h"
+
+namespace clang::tidy::llvm_check {
+
+/// Detects malformed regex patterns used in ``llvm::Regex``.
+///
+/// For the user-facing documentation see:
+/// http://clang.llvm.org/extra/clang-tidy/checks/llvm/regex.html
----------------
EugeneZelenko wrote:

```suggestion
/// https://clang.llvm.org/extra/clang-tidy/checks/llvm/regex.html
```

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


More information about the cfe-commits mailing list