Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
05f7870a
Commit
05f7870a
authored
15 years ago
by
Roberto Raggi
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
86e21bc2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/cpptools/cppfindreferences.cpp
+6
-10
6 additions, 10 deletions
src/plugins/cpptools/cppfindreferences.cpp
with
6 additions
and
10 deletions
src/plugins/cpptools/cppfindreferences.cpp
+
6
−
10
View file @
05f7870a
...
@@ -332,19 +332,19 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
...
@@ -332,19 +332,19 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
Identifier
*
symbolId
=
symbol
->
identifier
();
Identifier
*
symbolId
=
symbol
->
identifier
();
Q_ASSERT
(
symbolId
!=
0
);
Q_ASSERT
(
symbolId
!=
0
);
const
QString
fileNam
e
=
QString
::
fromUtf8
(
symbol
->
fileName
(),
symbol
->
fileNameLength
());
const
QString
sourceFil
e
=
QString
::
fromUtf8
(
symbol
->
fileName
(),
symbol
->
fileNameLength
());
QStringList
files
(
fileNam
e
);
QStringList
files
(
sourceFil
e
);
files
+=
snapshot
.
dependsOn
(
fileNam
e
);
files
+=
snapshot
.
dependsOn
(
sourceFil
e
);
qDebug
()
<<
"done in:"
<<
tm
.
elapsed
()
<<
"number of files to parse:"
<<
files
.
size
();
qDebug
()
<<
"done in:"
<<
tm
.
elapsed
()
<<
"number of files to parse:"
<<
files
.
size
();
future
.
setProgressRange
(
0
,
files
.
size
());
future
.
setProgressRange
(
0
,
files
.
size
());
for
(
int
i
=
0
;
i
<
files
.
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
files
.
size
();
++
i
)
{
const
QString
&
f
n
=
files
.
at
(
i
);
const
QString
&
f
ileName
=
files
.
at
(
i
);
future
.
setProgressValueAndText
(
i
,
QFileInfo
(
f
n
).
fileName
());
future
.
setProgressValueAndText
(
i
,
QFileInfo
(
f
ileName
).
fileName
());
Document
::
Ptr
previousDoc
=
snapshot
.
value
(
f
n
);
Document
::
Ptr
previousDoc
=
snapshot
.
value
(
f
ileName
);
if
(
previousDoc
)
{
if
(
previousDoc
)
{
Control
*
control
=
previousDoc
->
control
();
Control
*
control
=
previousDoc
->
control
();
Identifier
*
id
=
control
->
findIdentifier
(
symbolId
->
chars
(),
symbolId
->
size
());
Identifier
*
id
=
control
->
findIdentifier
(
symbolId
->
chars
(),
symbolId
->
size
());
...
@@ -352,10 +352,6 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
...
@@ -352,10 +352,6 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
continue
;
// skip this document, it's not using symbolId.
continue
;
// skip this document, it's not using symbolId.
}
}
QFile
f
(
fn
);
if
(
!
f
.
open
(
QFile
::
ReadOnly
))
continue
;
QByteArray
source
;
QByteArray
source
;
if
(
wl
.
contains
(
fileName
))
if
(
wl
.
contains
(
fileName
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment