Adjusts gMock Doctor to work with Return implementation updated in r233
This commit is contained in:
parent
201ac16191
commit
a63be0bd91
@ -186,8 +186,9 @@ def _NeedToReturnNothingDiagnoser(msg):
|
|||||||
"""Diagnoses the NRN disease, given the error messages by gcc."""
|
"""Diagnoses the NRN disease, given the error messages by gcc."""
|
||||||
|
|
||||||
regex = (_FILE_LINE_RE + r'instantiated from here\n'
|
regex = (_FILE_LINE_RE + r'instantiated from here\n'
|
||||||
r'.*gmock-actions\.h.*error: return-statement with a value, '
|
r'.*gmock-actions\.h.*error: instantiation of '
|
||||||
r'in function returning \'void\'')
|
r'\'testing::internal::ReturnAction<R>::Impl<F>::value_\' '
|
||||||
|
r'as type \'void\'')
|
||||||
diagnosis = """
|
diagnosis = """
|
||||||
You are using an action that returns *something*, but it needs to return
|
You are using an action that returns *something*, but it needs to return
|
||||||
void. Please use a void-returning action instead.
|
void. Please use a void-returning action instead.
|
||||||
@ -336,8 +337,10 @@ Did you forget to write
|
|||||||
def _NeedToUseReturnNullDiagnoser(msg):
|
def _NeedToUseReturnNullDiagnoser(msg):
|
||||||
"""Diagnoses the NRNULL disease, given the error messages by gcc."""
|
"""Diagnoses the NRNULL disease, given the error messages by gcc."""
|
||||||
|
|
||||||
regex = (_FILE_LINE_RE + r'instantiated from here\n'
|
regex = ('instantiated from \'testing::internal::ReturnAction<R>'
|
||||||
r'.*gmock-actions\.h.*error: invalid conversion from '
|
'::operator testing::Action<Func>\(\) const.*\n' +
|
||||||
|
_FILE_LINE_RE + r'instantiated from here\n'
|
||||||
|
r'.*gmock-port\.h.*error: invalid conversion from '
|
||||||
r'\'long int\' to \'(?P<type>.+\*)')
|
r'\'long int\' to \'(?P<type>.+\*)')
|
||||||
diagnosis = """
|
diagnosis = """
|
||||||
You are probably calling Return(NULL) and the compiler isn't sure how to turn
|
You are probably calling Return(NULL) and the compiler isn't sure how to turn
|
||||||
|
Loading…
Reference in New Issue
Block a user