Home | History | Annotate | Download | only in FileCheck

Lines Matching refs:Regex

26 #include "llvm/Support/Regex.h"
83 /// RegEx - If non-empty, this is a regex pattern.
151 /// \brief Finds the closing sequence of a regex variable usage or
180 // Check to see if this is a fixed string, or if it has regex pieces.
192 // Otherwise, there is at least one regex piece. Build up the regex pattern
193 // by escaping scary characters in fixed strings, building up one big regex.
195 // RegEx matches.
197 // This is the start of a regex match. Scan for the }}.
202 "found start of regex string with no end '}}'");
221 // Named RegEx matches. These are of two forms: [[foo:.*]] which matches .*
222 // (or some other regex) and assigns it to the FileCheck variable 'foo'. The
234 "invalid named regex reference, no ]] found");
241 // Get the regex name (e.g. "foo").
247 "invalid name in named regex: empty name");
260 "invalid name in named regex definition");
269 SourceMgr::DK_Error, "invalid name in named regex");
277 "invalid name in named regex");
312 // Find the end, which is the start of the next regex.
315 RegExStr += Regex::escape(PatternStr.substr(0, FixedMatchEnd));
324 Regex R(RS);
328 "invalid regex: " + Error);
379 // Regex match.
402 // Look up the value and escape it so that we can put it into the regex.
403 Value += Regex::escape(it->second);
406 // Plop it into the regex at the adjusted offset.
412 // Match the newly constructed regex.
418 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo))
421 // Successful regex match.
440 // just compare against the regex itself and hope for the best.
442 // FIXME: One easy improvement here is have the regex lib generate a single
558 "missing closing \"]\" for regex variable");
1177 Regex Validator("^[a-zA-Z0-9_-]*$");