Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
7028b951
Commit
7028b951
authored
Aug 03, 2010
by
Roberto Raggi
Browse files
Ignore shadowed symbols.
parent
eb44801b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppchecksymbols.cpp
View file @
7028b951
...
...
@@ -789,13 +789,11 @@ void CheckSymbols::addMemberUsage(const QList<LookupItem> &candidates, NameAST *
if
(
!
c
)
continue
;
else
if
(
!
c
->
isDeclaration
())
continue
;
else
if
(
c
->
isTypedef
())
continue
;
else
if
(
c
->
type
()
->
isFunctionType
())
continue
;
else
if
(
!
c
->
enclosingSymbol
()
->
isClass
())
continue
;
return
;
else
if
(
!
(
c
->
enclosingSymbol
()
&&
c
->
enclosingSymbol
()
->
isClass
()))
return
;
// shadowed
else
if
(
c
->
isTypedef
()
||
c
->
type
()
->
isFunctionType
())
return
;
// shadowed
const
Use
use
(
line
,
column
,
length
,
Use
::
Field
);
addUsage
(
use
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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