[clang-tools-extra] [clang-tidy] Add llvm-regex check (PR #207407)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 08:58:18 PDT 2026
================
@@ -0,0 +1,34 @@
+.. title:: clang-tidy - llvm-regex
+
+llvm-regex
+==========
+
+The checker detects malformed regex patterns defined in a single string literal
+to catch mistakes at compile time.
+It detects these string literals if they are defined in the regex constructor
+with a string literal, or stored in one of these non mutable container:
+
+- ``const std::string``
+- ``const char*``
+- ``const llvm::StringRef``
+- ``std::string_view``
+
+In the event that the patterns are stored as a class member, the check checks
----------------
EugeneZelenko wrote:
Something better than `check checks`, please.
https://github.com/llvm/llvm-project/pull/207407
More information about the cfe-commits
mailing list