/gem5/ext/googletest/googletest/include/gtest/ |
H A D | gtest-death-test.h | 102 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 103 // which uses the POSIX extended regex syntax. 105 // On other platforms (e.g. Windows), we only support a simple regex 109 // or POSIX extended regex syntax. For example, we don't support 114 // subset of both PCRE and POSIX extended regex, so it's easy to 141 // If you accidentally use PCRE or POSIX extended regex features 147 // as a compiled regex library, but should perform well enough for a 167 // that matches regex. 168 # define ASSERT_EXIT(statement, predicate, regex) \ 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/gem5/tests/gem5/ |
H A D | verifier.py | 73 :param ignore_regex: A string, compiled regex, or iterable containing 174 def __init__(self, regex, match_stderr=True, match_stdout=True): 176 self.regex = _iterable_regex(regex) 188 for regex in self.regex: 189 if re.match(regex, line): 200 test.fail('Could not match regex.') 203 def _iterable_regex(regex): 204 if isinstance(regex, _re_typ [all...] |
/gem5/ext/googletest/googletest/include/gtest/internal/ |
H A D | gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ 188 const ::testing::internal::RE& gtest_regex = (regex); \ 221 // NDEBUG mode. In this case we need the statements to be executed, the regex is 224 # define GTEST_EXECUTE_STATEMENT_(statement, regex) \ 283 // regex - A regex that a macro such as EXPECT_DEATH would use to test 295 // statement and regex ar [all...] |
H A D | gtest-port.h | 176 // GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with 179 // GTEST_USES_SIMPLE_RE - our own simple regex is used; 419 // On Android, <regex.h> is only available starting with Gingerbread. 431 // On some platforms, <regex.h> needs someone to define size_t, and 435 # include <regex.h> // NOLINT 441 // <regex.h> is not available on Windows. Use our own simple regex 447 // <regex.h> may not be available on this platform. Use our own 448 // simple regex implementation instead. 1154 // A simple C++ wrapper for <regex 1163 RE(const ::std::string& regex) argument 1167 RE(const ::string& regex) argument 1171 RE(const char* regex) argument [all...] |
/gem5/ext/googletest/googletest/src/ |
H A D | gtest-port.cc | 566 // regfree'ing an invalid regex might crash because the content 567 // of the regex is undefined. Since the regex's are essentially 594 void RE::Init(const char* regex) { argument 595 pattern_ = posix::StrDup(regex); 599 const size_t full_regex_len = strlen(regex) + 10; 602 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); 609 // Some implementation of POSIX regex (e.g. on at least some 611 // regex. We change it to an equivalent form "()" to be safe. 613 const char* const partial_regex = (*regex 674 FormatRegexSyntaxError(const char* regex, int index) argument 681 ValidateRegex(const char* regex) argument 744 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument 771 MatchRegexAtHead(const char* regex, const char* str) argument 807 MatchRegexAnywhere(const char* regex, const char* str) argument 841 Init(const char* regex) argument [all...] |
H A D | gtest-death-test.cc | 356 bool DeathTest::Create(const char* statement, const RE* regex, argument 359 statement, regex, file, line, test); 391 const RE* regex() const { return regex_; } function in class:testing::internal::DeathTestImpl 530 // regex: A regular expression object to be applied to 566 const bool matched = RE::PartialMatch(error_message.c_str(), *regex()); 571 << " Expected: " << regex()->pattern() << "\n" 789 ForkingDeathTest(const char* statement, const RE* regex); 1171 bool DefaultDeathTestFactory::Create(const char* statement, const RE* regex, argument 1200 *test = new WindowsDeathTest(statement, regex, file, line); 1206 *test = new ExecDeathTest(statement, regex, fil [all...] |
H A D | gtest-internal-inl.h | 943 GTEST_API_ bool ValidateRegex(const char* regex); 944 GTEST_API_ bool MatchRegexAtHead(const char* regex, const char* str); 946 bool escaped, char ch, char repeat, const char* regex, const char* str); 947 GTEST_API_ bool MatchRegexAnywhere(const char* regex, const char* str);
|
/gem5/ext/googletest/googlemock/scripts/ |
H A D | gmock_doctor.py | 137 def _FindAllMatches(regex, s): 138 """Generates all matches of regex in string s.""" 140 r = re.compile(regex) 152 diagnoses: A list of pairs (regex, pattern for formatting the diagnosis 153 for matching regex). 159 for regex, diagnosis in diagnoses: 160 if re.search(regex, msg): 162 for m in _FindAllMatches(regex, msg):
|
/gem5/ext/testlib/ |
H A D | config.py | 93 def __init__(self, include, regex): 95 self.regex = re.compile(regex) 99 return '%10s: %s' % (type_, self.regex.pattern) 345 for flag, regex in positional_tags: 347 tag_regex = TagRegex(False, regex) 349 tag_regex = TagRegex(True, regex)
|
H A D | helper.py | 379 for regex in filters: 380 if re.match(regex, line):
|
H A D | main.py | 139 --include-tags <regex> 140 --exclude-tags <regex> 144 If the regex provided with the `--include-tags` flag matches a tag of a 147 If the regex provided with the `--exclude-tags` flag matches a tag of a 189 matched_tags = (tag for tag in tags if tag_regex.regex.search(tag))
|
/gem5/util/stats/ |
H A D | db.py | 293 def listStats(self, regex=None): 298 if regex != None: 299 rx = re.compile(regex) 312 def listFormulas(self, regex=None): 317 if regex != None: 318 rx = re.compile(regex)
|
/gem5/util/style/ |
H A D | verifiers.py | 448 regex = re.compile(r'\s*==\s*([Tt]rue|[Ff]alse)\b') variable in class:BoolCompare 451 return self.regex.search(line) == None 454 match = self.regex.search(line) 457 line = self.regex.sub('', line)
|
/gem5/ext/googletest/googletest/scripts/ |
H A D | pump.py | 171 for (regex, token_type) in token_table: 172 m = regex.search(line) 174 # We found regex in lines 196 # We found a regex in line. 243 def ParseToken(lines, pos, regex, token_type): 245 m = regex.search(line) 261 def Skip(lines, pos, regex): 263 m = re.search(regex, line) 270 def SkipUntil(lines, pos, regex, token_type): 272 m = re.search(regex, lin [all...] |
/gem5/ext/googletest/googletest/test/ |
H A D | gtest-death-test_test.cc | 319 // TODO(wan@google.com): <regex.h> doesn't support matching strings 503 const testing::internal::RE regex(regex_c_str); 504 EXPECT_DEATH(GlobalFunction(), regex); local 599 const char* regex = "DieIf"; local 600 const char* regex_save = regex; 601 EXPECT_DEATH(DieIfLessThan(3, 4), regex++); 602 EXPECT_EQ(regex_save + 1, regex); 884 const ::testing::internal::RE* regex, 1000 const ::testing::internal::RE* /*regex*/,
|
H A D | gtest-port_test.cc | 355 const char regex[] = local 366 regex);
|
/gem5/src/sim/ |
H A D | mathexpr.cc | 44 #include <regex>
|
/gem5/util/streamline/ |
H A D | m5stats2streamline.py | 732 # Regex for this stat (string version used to construct union regex) 734 self.regex = re.compile("^" + name + "\s+([\d\.e\-]+)\s+# (.*)$", re.M) 756 # Create per-CPU stat name and regex, etc. 809 self.regex = re.compile('|'.join(regex_strings)) 953 # Do a single regex of the union of all stats first for speed 954 if stats.regex.match(line): 978 m = stat.regex.match(line)
|
/gem5/ext/ply/ply/ |
H A D | lex.py | 119 # mapping regex group numbers to rules 122 self.lexstateretext = {} # Dictionary mapping lexer states to regex strings 477 # This function takes a list of all of the regex components and attempts to 479 # module, it may be necessary to break the master regex into separate expressions. 484 regex = "|".join(relist) 486 lexre = re.compile(regex,re.VERBOSE | reflags) 504 return [(lexre,lexindexfunc)],[regex],[lexindexnames] 960 debuglog.info("lex: state '%s' : regex[%d] = '%s'",state, i, re_text[i]) 1040 # @TOKEN(regex) 1042 # This decorator function can be used to set the regex expressio [all...] |
/gem5/ext/googletest/googlemock/include/gmock/ |
H A D | gmock-matchers.h | 1323 // Implements polymorphic matchers MatchesRegex(regex) and 1324 // ContainsRegex(regex), which can be used as a Matcher<T> as long as 1328 MatchesRegexMatcher(const RE* regex, bool full_match) argument 1329 : regex_(regex), full_match_(full_match) {} 4003 // Matches a string that fully matches regular expression 'regex'. 4004 // The matcher takes ownership of 'regex'. 4006 const internal::RE* regex) { 4007 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true)); 4010 const internal::string& regex) { 4011 return MatchesRegex(new internal::RE(regex)); 4005 MatchesRegex( const internal::RE* regex) argument 4009 MatchesRegex( const internal::string& regex) argument 4016 ContainsRegex( const internal::RE* regex) argument 4020 ContainsRegex( const internal::string& regex) argument [all...] |