Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
787146bd
Commit
787146bd
authored
Aug 16, 2011
by
vladlosev
Browse files
Improves support for Clang in Google Mock Doctor.
parent
f4eeaedb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/gmock_doctor.py
scripts/gmock_doctor.py
+3
-2
No files found.
scripts/gmock_doctor.py
View file @
787146bd
...
...
@@ -394,8 +394,9 @@ 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 '
r
'\'(?P<symbol>.+)\''
)
clang_regex
=
(
_CLANG_FILE_LINE_RE
+
r
'error: (use of undeclared identifier|unknown type name) '
r
'\'(?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