Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4deb7d05
Commit
4deb7d05
authored
Aug 12, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip local typedef declarations.
parent
16b1e8b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/plugins/cppeditor/cpplocalsymbols.cpp
src/plugins/cppeditor/cpplocalsymbols.cpp
+6
-2
No files found.
src/plugins/cppeditor/cpplocalsymbols.cpp
View file @
4deb7d05
...
...
@@ -89,7 +89,9 @@ protected:
for
(
unsigned
i
=
0
;
i
<
scope
->
memberCount
();
++
i
)
{
if
(
Symbol
*
member
=
scope
->
memberAt
(
i
))
{
if
(
!
member
->
isGenerated
()
&&
(
member
->
isDeclaration
()
||
member
->
isArgument
()))
{
if
(
member
->
isTypedef
())
continue
;
else
if
(
!
member
->
isGenerated
()
&&
(
member
->
isDeclaration
()
||
member
->
isArgument
()))
{
if
(
member
->
name
()
&&
member
->
name
()
->
isNameId
())
{
const
Identifier
*
id
=
member
->
identifier
();
unsigned
line
,
column
;
...
...
@@ -107,7 +109,9 @@ protected:
const
Identifier
*
id
=
identifier
(
simpleName
->
identifier_token
);
for
(
int
i
=
_scopeStack
.
size
()
-
1
;
i
!=
-
1
;
--
i
)
{
if
(
Symbol
*
member
=
_scopeStack
.
at
(
i
)
->
find
(
id
))
{
if
(
!
member
->
isGenerated
()
&&
(
member
->
sourceLocation
()
<
ast
->
firstToken
()
||
member
->
scope
()
->
isFunction
()))
{
if
(
member
->
isTypedef
())
continue
;
else
if
(
!
member
->
isGenerated
()
&&
(
member
->
sourceLocation
()
<
ast
->
firstToken
()
||
member
->
scope
()
->
isFunction
()))
{
unsigned
line
,
column
;
getTokenStartPosition
(
simpleName
->
identifier_token
,
&
line
,
&
column
);
localUses
[
member
].
append
(
SemanticInfo
::
Use
(
line
,
column
,
id
->
size
(),
SemanticInfo
::
Use
::
Local
));
...
...
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