Home | History | Annotate | Download | only in FileCheck

Lines Matching refs:Regex

23 #include "llvm/Support/Regex.h"
63 /// RegEx - If non-empty, this is a regex pattern.
125 // Check to see if this is a fixed string, or if it has regex pieces.
137 // Otherwise, there is at least one regex piece. Build up the regex pattern
138 // by escaping scary characters in fixed strings, building up one big regex.
140 // RegEx matches.
143 // Otherwise, this is the start of a regex match. Scan for the }}.
147 "found start of regex string with no end '}}'","error");
166 // Named RegEx matches. These are of two forms: [[foo:.*]] which matches .*
167 // (or some other regex) and assigns it to the FileCheck variable 'foo'. The
176 "invalid named regex reference, no ]] found", "error");
183 // Get the regex name (e.g. "foo").
189 "invalid name in named regex: empty name", "error");
197 "invalid name in named regex", "error");
204 "invalid name in named regex", "error");
226 // Find the end, which is the start of the next regex.
238 // Add the characters from FixedStr to the regex, escaping as needed. This
266 Regex R(RegexStr);
270 "invalid regex: " + Error, "error");
296 // Regex match.
313 // Look up the value and escape it so that we can plop it into the regex.
317 // Plop it into the regex at the adjusted offset.
323 // Match the newly constructed regex.
329 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo))
332 // Successful regex match.
350 // just compare against the regex itself and hope for the best.
352 // FIXME: One easy improvement here is have the regex lib generate a single