Lines Matching refs:Regex
26 #include "llvm/Support/Regex.h"
73 /// RegEx - If non-empty, this is a regex pattern.
142 /// \brief Finds the closing sequence of a regex variable usage or
169 // Check to see if this is a fixed string, or if it has regex pieces.
181 // Otherwise, there is at least one regex piece. Build up the regex pattern
182 // by escaping scary characters in fixed strings, building up one big regex.
184 // RegEx matches.
186 // This is the start of a regex match. Scan for the }}.
191 "found start of regex string with no end '}}'");
210 // Named RegEx matches. These are of two forms: [[foo:.*]] which matches .*
211 // (or some other regex) and assigns it to the FileCheck variable 'foo'. The
223 "invalid named regex reference, no ]] found");
230 // Get the regex name (e.g. "foo").
236 "invalid name in named regex: empty name");
249 "invalid name in named regex definition");
258 SourceMgr::DK_Error, "invalid name in named regex");
266 "invalid name in named regex");
301 // Find the end, which is the start of the next regex.
312 // Add the characters from FixedStr to the regex, escaping as needed. This
340 Regex R(RS);
344 "invalid regex: " + Error);
395 // Regex match.
418 // Look up the value and escape it so that we can plop it into the regex.
422 // Plop it into the regex at the adjusted offset.
428 // Match the newly constructed regex.
434 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo))
437 // Successful regex match.
456 // just compare against the regex itself and hope for the best.
458 // FIXME: One easy improvement here is have the regex lib generate a single
571 assert(BracketDepth > 0 && "Invalid regex");