[clang] [clang][ASTMatcher] Add `matchesString` for `StringLiteral` which matches literals on given `RegExp` (PR #102152)

via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 14 00:47:03 PDT 2024


================
@@ -125,6 +125,7 @@ RegistryMaps::RegistryMaps() {
   REGISTER_MATCHER_OVERLOAD(equals);
 
   REGISTER_REGEX_MATCHER(isExpansionInFileMatching);
+  REGISTER_REGEX_MATCHER(matchesString);
   REGISTER_REGEX_MATCHER(matchesName);
   REGISTER_REGEX_MATCHER(matchesSelector);
----------------
Gitspike wrote:

thanks,fixed in https://github.com/llvm/llvm-project/pull/102152/commits/df10be46105dfa73278c7a3bd78a02ce21a93f97

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


More information about the cfe-commits mailing list