Skip to content
GitLab
Menu
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
06ce5352
Commit
06ce5352
authored
Aug 06, 2010
by
Roberto Raggi
Browse files
Don't mess with the generated symbols.
parent
fe101004
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cpplocalsymbols.cpp
View file @
06ce5352
...
...
@@ -89,7 +89,7 @@ protected:
for
(
unsigned
i
=
0
;
i
<
scope
->
symbolCount
();
++
i
)
{
if
(
Symbol
*
member
=
scope
->
symbolAt
(
i
))
{
if
(
member
->
isDeclaration
()
||
member
->
isArgument
())
{
if
(
!
member
->
isGenerated
()
&&
(
member
->
isDeclaration
()
||
member
->
isArgument
())
)
{
if
(
member
->
name
()
&&
member
->
name
()
->
isNameId
())
{
const
Identifier
*
id
=
member
->
identifier
();
unsigned
line
,
column
;
...
...
@@ -107,7 +107,7 @@ protected:
const
Identifier
*
id
=
identifier
(
simpleName
->
identifier_token
);
for
(
int
i
=
_scopeStack
.
size
()
-
1
;
i
!=
-
1
;
--
i
)
{
if
(
Symbol
*
member
=
_scopeStack
.
at
(
i
)
->
lookat
(
id
))
{
if
(
member
->
sourceLocation
()
<
ast
->
firstToken
()
||
member
->
scope
()
->
isPrototypeScope
())
{
if
(
!
member
->
isGenerated
()
&&
(
member
->
sourceLocation
()
<
ast
->
firstToken
()
||
member
->
scope
()
->
isPrototypeScope
())
)
{
unsigned
line
,
column
;
getTokenStartPosition
(
simpleName
->
identifier_token
,
&
line
,
&
column
);
localUses
[
member
].
append
(
SemanticInfo
::
Use
(
line
,
column
,
id
->
size
(),
SemanticInfo
::
Use
::
Local
));
...
...
Write
Preview
Supports
Markdown
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