Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
eca38cd7
Commit
eca38cd7
authored
Aug 25, 2011
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More Clang support improvements in Google Mock Doctor.
parent
787146bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gmock_doctor.py
scripts/gmock_doctor.py
+5
-5
No files found.
scripts/gmock_doctor.py
View file @
eca38cd7
...
...
@@ -173,7 +173,7 @@ def _NeedToReturnReferenceDiagnoser(msg):
r'(.*\n)*?'
+
_CLANG_NON_GMOCK_FILE_LINE_RE
+
r'note: in instantiation of function template specialization '
r'\'testing::internal::ReturnAction<(?P<type>
).*
>'
r'\'testing::internal::ReturnAction<(?P<type>
.*)
>'
r'::operator Action<.*>\' requested here'
)
diagnosis
=
"""
You are using a Return() action in a function that returns a reference to
...
...
@@ -192,11 +192,11 @@ def _NeedToReturnSomethingDiagnoser(msg):
r'|(error: control reaches end of non-void function)'
)
clang_regex1
=
(
_CLANG_FILE_LINE_RE
+
r'error: cannot initialize return object '
r'of type \'Result\' \(aka \'(?P<return_type>
).*
\'\) '
r'of type \'Result\' \(aka \'(?P<return_type>
.*)
\'\) '
r'with an rvalue of type \'void\''
)
clang_regex2
=
(
_CLANG_FILE_LINE_RE
+
r'error: cannot initialize return object '
r'of type \'(?P<return_type>
).*
\' '
r'of type \'(?P<return_type>
.*)
\' '
r'with an rvalue of type \'void\''
)
diagnosis
=
"""
You are using an action that returns void, but it needs to return
...
...
@@ -395,8 +395,8 @@ def _NeedToUseSymbolDiagnoser(msg):
gcc_regex
=
(
_GCC_FILE_LINE_RE
+
r'error: \'(?P<symbol>.+)\' '
r'(was not declared in this scope|has not been declared)'
)
clang_regex
=
(
_CLANG_FILE_LINE_RE
+
r'error: (use of undeclared identifier|unknown type name
)
'
r'\'(?P<symbol>[^\']+)\''
)
r'error: (use of undeclared identifier|unknown type name
|
'
r'
no template named)
\'(?P<symbol>[^\']+)\''
)
diagnosis
=
"""
'
%(symbol)
s' is defined by Google Mock in the testing namespace.
Did you forget to write
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment