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')
190 gcc_regex = (_GCC_FILE_LINE_RE + r'(instantiated from here\n.'
191 r'*gmock.*actions\.h.*error: void value not ignored)'
192 r'|(error: control reaches end of non-void function)')
194 r'error: cannot initialize return object '
195 r'of type \'Result\' \(aka \'(?P<return_type>.*)\'\) '
196 r'with an rvalue of type \'void\'')
198 r'error: cannot initialize return object '
199 r'of type \'(?P<return_type>.*)\' '
200 r'with an rvalue of type \'void\'')
217 gcc_regex = (_GCC_FILE_LINE_RE + r'instantiated from here\n'
218 r'.*gmock-actions\.h.*error: instantiation of '
219 r'\'testing::internal::ReturnAction<R>::Impl<F>::value_\' '
220 r'as type \'void\'')
221 clang_regex1 = (r'error: field has incomplete type '
222 r'\'Result\' \(aka \'void\'\)(\r)?\n'
223 r'(.*\n)*?' +
224 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
225 r'of function template specialization '
226 r'\'testing::internal::ReturnAction<(?P<return_type>.*)>'
227 r'::operator Action<void \(.*\)>\' requested here')
228 clang_regex2 = (r'error: field has incomplete type '
229 r'\'Result\' \(aka \'void\'\)(\r)?\n'
230 r'(.*\n)*?' +
231 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
232 r'of function template specialization '
233 r'\'testing::internal::DoBothAction<.*>'
234 r'::operator Action<(?P<return_type>.*) \(.*\)>\' '
235 r'requested here')
254 gcc_regex = (_GCC_FILE_LINE_RE + r'instantiated from here\n'
255 r'.*gtest-printers\.h.*error: invalid application of '
256 r'\'sizeof\' to incomplete type \'(?P<type>.*)\'')
258 clang_regex = (r'.*gtest-printers\.h.*error: invalid application of '
259 r'\'sizeof\' to an incomplete type '
260 r'\'(?P<type>.*)( const)?\'\r?\n'
261 r'(.*\n)*?' +
263 r'note: in instantiation of member function '
264 r'\'testing::internal2::TypeWithoutFormatter<.*>::'
265 r'PrintValue\' requested here')
281 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for '
282 r'call to \'Truly\(<unresolved overloaded function type>\)')
283 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching function for '
284 r'call to \'Truly')
302 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for call to '
303 r'\'Invoke\(<unresolved overloaded function type>')
304 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching '
305 r'function for call to \'Invoke\'\r?\n'
306 r'(.*\n)*?'
307 r'.*\bgmock-\w+-actions\.h:\d+:\d+:\s+'
308 r'note: candidate template ignored:\s+'
309 r'couldn\'t infer template argument \'FunctionImpl\'')
327 gcc_regex = (_GCC_FILE_LINE_RE + r'error: no matching function for '
328 r'call to \'Invoke\(.+, <unresolved overloaded function '
329 r'type>\)')
330 clang_regex = (_CLANG_FILE_LINE_RE + r'error: no matching function '
331 r'for call to \'Invoke\'\r?\n'
332 r'(.*\n)*?'
333 r'.*\bgmock-\w+-actions\.h:\d+:\d+: '
334 r'note: candidate function template not viable: '
335 r'requires .*, but 2 (arguments )?were provided')
356 gcc_regex = (_GCC_FILE_LINE_RE + r'error: request for member '
357 r'\'gmock_(?P<method>.+)\' in \'(?P<mock_object>.+)\', '
358 r'which is of non-class type \'(.*::)*(?P<class_name>.+)\*\'')
359 clang_regex = (_CLANG_FILE_LINE_RE + r'error: member reference type '
360 r'\'(?P<class_name>.*?) *\' is a pointer; '
361 r'maybe you meant to use \'->\'\?')
395 gcc_regex = (_GCC_FILE_LINE_RE + r'error: \'(?P<symbol>.+)\' '
396 r'(was not declared in this scope|has not been declared)')
398 r'error: (use of undeclared identifier|unknown type name|'
399 r'no template named) \'(?P<symbol>[^\']+)\'')
417 _GCC_FILE_LINE_RE + r'instantiated from here\n'
418 r'.*error: no matching function for call to \'ImplicitCast_\('
419 r'(:?long )?int&\)')
420 clang_regex = (r'\bgmock-actions.h:.* error: no matching function for '
421 r'call to \'ImplicitCast_\'\r?\n'
422 r'(.*\n)*?' +
423 _CLANG_NON_GMOCK_FILE_LINE_RE + r'note: in instantiation '
424 r'of function template specialization '
425 r'\'testing::internal::ReturnAction<(int|long)>::operator '
426 r'Action<(?P<type>.*)\(\)>\' requested here')
444 r'In member function \'int .*\n' + _GCC_FILE_LINE_RE +
445 r'error: a function call cannot appear in a constant-expression')
447 r'error: a function call cannot appear in a constant-expression'
448 + _GCC_FILE_LINE_RE + r'error: template argument 1 is invalid\n')
453 r'error: \'(?P<type>.+)\' was not declared in this scope\n'
454 r'.*error: template argument 1 is invalid\n')
458 r'error: expected `;\' before \'::\' token\n'
460 r'error: \'(?P<type>.+)\' was not declared in this scope\n'
461 r'.*error: template argument 1 is invalid\n'
462 r'.*error: \'.+\' was not declared in this scope')
465 r'error: use of undeclared identifier \'(?P<type>.*)\'\n'
466 r'(.*\n)*?'
467 r'(?P=file):(?P=line):\d+: error: '
468 r'non-friend class member \'Result\' cannot have a qualified name'
472 r'error: C\+\+ requires a type specifier for all declarations\n'
473 r'(.*\n)*?'
474 r'(?P=file):(?P=line):(?P=column): error: '
475 r'C\+\+ requires a type specifier for all declarations'
479 r'error: unknown type name \'(?P<type>[^\']+)\''
511 r'.*this_method_does_not_take_(?P<wrong_args>\d+)_argument.*\n'
512 r'.*\n'
513 r'.*candidates are.*FunctionMocker<[^>]+A(?P<args>\d+)\)>')
515 r'error:.*array.*negative.*r?\n'
516 r'(.*\n)*?'
517 r'(?P=file):(?P=line):(?P=column): error: too few arguments '
518 r'to function call, expected (?P<args>\d+), '
519 r'have (?P<wrong_args>\d+)')
534 r'error:.*testing::internal::MockSpec<.* has no member named \''
535 r'(?P<method>\w+)\'')
537 r'error: no member named \'(?P<method>\w+)\' in '
538 r'\'testing::internal::MockSpec<.*>\'')
571 msg = re.sub(r'\x1b\[[^m]*m', '', msg) # Strips all color formatting.
574 msg = re.sub(r'(\xe2\x80\x98|\xe2\x80\x99)', "'", msg)