Lines Matching refs:r

131 _GCC_FILE_LINE_RE = r'(?P<file>.*):(?P<line>\d+):(\d+:)?\s+'
132 _CLANG_FILE_LINE_RE = r'(?P<file>.*):(?P<line>\d+):(?P<column>\d+):\s+'
134 r'(?P<file>.*[/\\^](?!gmock-)[^/\\]+):(?P<line>\d+):(?P<column>\d+):\s+')
140 r = re.compile(regex)
141 return r.finditer(s)
169 gcc_regex = (r'In member function \'testing::internal::ReturnAction<R>.*\n'
170 + _GCC_FILE_LINE_RE + r'instantiated from here\n'
171 r'.*gmock-actions\.h.*error: creating array with negative size')
172 clang_regex = (r'error:.*array.*negative.*\r?\n'
173 r'(.*\n)*?' +
175 r'note: in instantiation of function template specialization '
176 r'\'testing::internal::ReturnAction<(?P<type>.*)>'
177 r'::operator Action<.*>\' requested here')
178 clang11_re = (r'use_ReturnRef_instead_of_Return_to_return_a_reference.*'
179 r'(.*\n)*?' + _CLANG_NON_GMOCK_FILE_LINE_RE)
194 gcc_regex = (_GCC_FILE_LINE_RE + r'(instantiated from here\n.'
195 r'*gmock.*actions\.h.*error: void value not ignored)'
196 r'|(error: control reaches end of non-void function)')
198 r'error: cannot initialize return object '
199 r'of type \'Result\' \(aka \'(?P<return_type>.*)\'\) '
200 r'with an rvalue of type \'void\'')
202 r'error: cannot initialize return object '
203 r'of type \'(?P<return_type>.*)\' '
204 r'with an rvalue of type \'void\'')
221 gcc_regex = (_GCC_FILE_LINE_RE + r'instantiated from here\n'
222 r'.*gmock-actions\.h.*error: instantiation of '
223 r'\'testing::internal::ReturnAction<R>::Impl<F>::value_\' '
224 r'as type \'void\'')
225 clang_regex1 = (r'error: field has incomplete type '
226 r'\'Result\' \(aka \'void\'\)(\r)?\n'
227 r'(.*\n)*?' +
228 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
229 r'of function template specialization '
230 r'\'testing::internal::ReturnAction<(?P<return_type>.*)>'
231 r'::operator Action<void \(.*\)>\' requested here')
232 clang_regex2 = (r'error: field has incomplete type '
233 r'\'Result\' \(aka \'void\'\)(\r)?\n'
234 r'(.*\n)*?' +
235 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
236 r'of function template specialization '
237 r'\'testing::internal::DoBothAction<.*>'
238 r'::operator Action<(?P<return_type>.*) \(.*\)>\' '
239 r'requested here')
258 gcc_regex = (_GCC_FILE_LINE_RE + r'instantiated from here\n'
259 r'.*gtest-printers\.h.*error: invalid application of '
260 r'\'sizeof\' to incomplete type \'(?P<type>.*)\'')
262 clang_regex = (r'.*gtest-printers\.h.*error: invalid application of '
263 r'\'sizeof\' to an incomplete type '
264 r'\'(?P<type>.*)( const)?\'\r?\n'
265 r'(.*\n)*?' +
267 r'note: in instantiation of member function '
268 r'\'testing::internal2::TypeWithoutFormatter<.*>::'
269 r'PrintValue\' requested here')
285 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for '
286 r'call to \'Truly\(<unresolved overloaded function type>\)')
287 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching function for '
288 r'call to \'Truly')
306 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for call to '
307 r'\'Invoke\(<unresolved overloaded function type>')
308 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching '
309 r'function for call to \'Invoke\'\r?\n'
310 r'(.*\n)*?'
311 r'.*\bgmock-generated-actions\.h:\d+:\d+:\s+'
312 r'note: candidate template ignored:\s+'
313 r'couldn\'t infer template argument \'FunctionImpl\'')
331 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for '
332 r'call to \'Invoke\(.+, <unresolved overloaded function '
333 r'type>\)')
334 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching function '
335 r'for call to \'Invoke\'\r?\n'
336 r'(.*\n)*?'
337 r'.*\bgmock-generated-actions\.h:\d+:\d+: '
338 r'note: candidate function template not viable: '
339 r'requires .*, but 2 (arguments )?were provided')
360 gcc_regex = (_GCC_FILE_LINE_RE + r'error: request for member '
361 r'\'gmock_(?P<method>.+)\' in \'(?P<mock_object>.+)\', '
362 r'which is of non-class type \'(.*::)*(?P<class_name>.+)\*\'')
363 clang_regex = (_CLANG_FILE_LINE_RE + r'error: member reference type '
364 r'\'(?P<class_name>.*?) *\' is a pointer; '
365 r'(did you mean|maybe you meant) to use \'->\'\?')
399 gcc_regex = (_GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' '
400 r'(was not declared in this scope|has not been declared)')
402 r'error: (use of undeclared identifier|unknown type name|'
403 r'no template named) \'(?P<symbol>[^\']+)\'')
421 _GCC_FILE_LINE_RE + r'instantiated from here\n'
422 r'.*error: no matching function for call to \'ImplicitCast_\('
423 r'(:?long )?int&\)')
424 clang_regex = (r'\bgmock-actions.h:.* error: no matching function for '
425 r'call to \'ImplicitCast_\'\r?\n'
426 r'(.*\n)*?' +
427 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
428 r'of function template specialization '
429 r'\'testing::internal::ReturnAction<(int|long)>::operator '
430 r'Action<(?P<type>.*)\(\)>\' requested here')
448 r'In member function \'int .*\n' + _GCC_FILE_LINE_RE +
449 r'error: a function call cannot appear in a constant-expression')
451 r'error: a function call cannot appear in a constant-expression'
452 + _GCC_FILE_LINE_RE + r'error: template argument 1 is invalid\n')
457 r'error: \'(?P<type>.+)\' was not declared in this scope\n'
458 r'.*error: template argument 1 is invalid\n')
462 r'error: expected `;\' before \'::\' token\n'
464 r'error: \'(?P<type>.+)\' was not declared in this scope\n'
465 r'.*error: template argument 1 is invalid\n'
466 r'.*error: \'.+\' was not declared in this scope')
469 r'error: use of undeclared identifier \'(?P<type>.*)\'\n'
470 r'(.*\n)*?'
471 r'(?P=file):(?P=line):\d+: error: '
472 r'non-friend class member \'Result\' cannot have a qualified name'
476 r'error: C\+\+ requires a type specifier for all declarations\n'
477 r'(.*\n)*?'
478 r'(?P=file):(?P=line):(?P=column): error: '
479 r'C\+\+ requires a type specifier for all declarations'
483 r'error: unknown type name \'(?P<type>[^\']+)\''
515 r'.*this_method_does_not_take_(?P<wrong_args>\d+)_argument.*\n'
516 r'.*\n'
517 r'.*candidates are.*FunctionMocker<[^>]+A(?P<args>\d+)\)>')
519 r'error:.*array.*negative.*r?\n'
520 r'(.*\n)*?'
521 r'(?P=file):(?P=line):(?P=column): error: too few arguments '
522 r'to function call, expected (?P<args>\d+), '
523 r'have (?P<wrong_args>\d+)')
525 r'.*this_method_does_not_take_'
526 r'(?P<wrong_args>\d+)_argument.*')
543 r'error:.*testing::internal::MockSpec<.* has no member named \''
544 r'(?P<method>\w+)\'')
546 r'error: no member named \'(?P<method>\w+)\' in '
547 r'\'testing::internal::MockSpec<.*>\'')
580 msg = re.sub(r'\x1b\[[^m]*m', '', msg) # Strips all color formatting.
583 msg = re.sub(r'(\xe2\x80\x98|\xe2\x80\x99)', "'", msg)