Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
f446363d
Commit
f446363d
authored
Aug 11, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark the templates.
parent
8a32c41f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/plugins/cppeditor/cppchecksymbols.cpp
src/plugins/cppeditor/cppchecksymbols.cpp
+6
-1
src/shared/cplusplus/Symbol.cpp
src/shared/cplusplus/Symbol.cpp
+1
-1
No files found.
src/plugins/cppeditor/cppchecksymbols.cpp
View file @
f446363d
...
...
@@ -229,6 +229,11 @@ protected:
return
true
;
}
virtual
bool
visit
(
Template
*
)
{
return
true
;
}
virtual
bool
visit
(
Class
*
symbol
)
{
addType
(
symbol
->
name
());
...
...
@@ -857,7 +862,7 @@ void CheckSymbols::addTypeOrStatic(const QList<LookupItem> &candidates, NameAST
else
if
(
c
->
isUsingNamespaceDirective
())
// ... and using namespace directives.
continue
;
else
if
(
c
->
isTypedef
()
||
c
->
isNamespace
()
||
c
->
isClass
()
||
c
->
isEnum
()
||
c
->
isClass
()
||
c
->
isEnum
()
||
c
->
isTemplate
()
||
c
->
isForwardClassDeclaration
()
||
c
->
isTypenameArgument
()
||
c
->
enclosingEnum
()
!=
0
)
{
unsigned
line
,
column
;
...
...
src/shared/cplusplus/Symbol.cpp
View file @
f446363d
...
...
@@ -348,7 +348,7 @@ bool Symbol::isNamespace() const
{
return
asNamespace
()
!=
0
;
}
bool
Symbol
::
isTemplate
()
const
{
return
as
Namespac
e
()
!=
0
;
}
{
return
as
Templat
e
()
!=
0
;
}
bool
Symbol
::
isClass
()
const
{
return
asClass
()
!=
0
;
}
...
...
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