diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2009-11-18 00:42:27 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2009-11-18 00:42:27 +0000 |
commit | a63be0bd91ebbcb33635b1730a8cd8cb70fb3733 (patch) | |
tree | 428c8f71de21034c93dc096adc7179699e9fbeb0 /scripts/gmock_doctor.py | |
parent | 201ac161919b2c7f464b4f966a4f1a1a2379c486 (diff) | |
download | googletest-a63be0bd91ebbcb33635b1730a8cd8cb70fb3733.tar.gz googletest-a63be0bd91ebbcb33635b1730a8cd8cb70fb3733.tar.bz2 googletest-a63be0bd91ebbcb33635b1730a8cd8cb70fb3733.zip |
Adjusts gMock Doctor to work with Return implementation updated in r233
Diffstat (limited to 'scripts/gmock_doctor.py')
-rwxr-xr-x | scripts/gmock_doctor.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py index 40512fcd..d21b9ee7 100755 --- a/scripts/gmock_doctor.py +++ b/scripts/gmock_doctor.py @@ -186,8 +186,9 @@ def _NeedToReturnNothingDiagnoser(msg): """Diagnoses the NRN disease, given the error messages by gcc.""" regex = (_FILE_LINE_RE + r'instantiated from here\n' - r'.*gmock-actions\.h.*error: return-statement with a value, ' - r'in function returning \'void\'') + r'.*gmock-actions\.h.*error: instantiation of ' + r'\'testing::internal::ReturnAction<R>::Impl<F>::value_\' ' + r'as type \'void\'') diagnosis = """ You are using an action that returns *something*, but it needs to return void. Please use a void-returning action instead. @@ -336,8 +337,10 @@ Did you forget to write def _NeedToUseReturnNullDiagnoser(msg): """Diagnoses the NRNULL disease, given the error messages by gcc.""" - regex = (_FILE_LINE_RE + r'instantiated from here\n' - r'.*gmock-actions\.h.*error: invalid conversion from ' + regex = ('instantiated from \'testing::internal::ReturnAction<R>' + '::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>.+\*)') diagnosis = """ You are probably calling Return(NULL) and the compiler isn't sure how to turn |