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
3163e13c
Commit
3163e13c
authored
16 years ago
by
Kavindra Palaraja
Browse files
Options
Downloads
Plain Diff
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.1-beta
parents
764f9b3a
02488eeb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/cpptools/cppmodelmanager.cpp
+12
-12
12 additions, 12 deletions
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.h
+4
-4
4 additions, 4 deletions
src/plugins/cpptools/cppmodelmanager.h
with
16 additions
and
16 deletions
src/plugins/cpptools/cppmodelmanager.cpp
+
12
−
12
View file @
3163e13c
...
...
@@ -115,7 +115,6 @@ public:
void
setWorkingCopy
(
const
QMap
<
QString
,
QByteArray
>
&
workingCopy
);
void
setIncludePaths
(
const
QStringList
&
includePaths
);
void
setFrameworkPaths
(
const
QStringList
&
frameworkPaths
);
void
addIncludePath
(
const
QString
&
path
);
void
setProjectFiles
(
const
QStringList
&
files
);
void
run
(
QString
&
fileName
);
void
operator
()(
QString
&
fileName
);
...
...
@@ -170,9 +169,6 @@ void CppPreprocessor::setIncludePaths(const QStringList &includePaths)
void
CppPreprocessor
::
setFrameworkPaths
(
const
QStringList
&
frameworkPaths
)
{
m_frameworkPaths
=
frameworkPaths
;
}
void
CppPreprocessor
::
addIncludePath
(
const
QString
&
path
)
{
m_includePaths
.
append
(
path
);
}
void
CppPreprocessor
::
setProjectFiles
(
const
QStringList
&
files
)
{
m_projectFiles
=
files
;
}
...
...
@@ -488,14 +484,14 @@ void CppModelManager::ensureUpdated()
if
(
!
m_dirty
)
return
;
m_projectFiles
=
update
ProjectFiles
();
m_includePaths
=
update
IncludePaths
();
m_frameworkPaths
=
update
FrameworkPaths
();
m_definedMacros
=
update
DefinedMacros
();
m_projectFiles
=
internal
ProjectFiles
();
m_includePaths
=
internal
IncludePaths
();
m_frameworkPaths
=
internal
FrameworkPaths
();
m_definedMacros
=
internal
DefinedMacros
();
m_dirty
=
false
;
}
QStringList
CppModelManager
::
update
ProjectFiles
()
const
QStringList
CppModelManager
::
internal
ProjectFiles
()
const
{
QStringList
files
;
QMapIterator
<
ProjectExplorer
::
Project
*
,
ProjectInfo
>
it
(
m_projects
);
...
...
@@ -504,10 +500,11 @@ QStringList CppModelManager::updateProjectFiles() const
ProjectInfo
pinfo
=
it
.
value
();
files
+=
pinfo
.
sourceFiles
;
}
files
.
removeDuplicates
();
return
files
;
}
QStringList
CppModelManager
::
update
IncludePaths
()
const
QStringList
CppModelManager
::
internal
IncludePaths
()
const
{
QStringList
includePaths
;
QMapIterator
<
ProjectExplorer
::
Project
*
,
ProjectInfo
>
it
(
m_projects
);
...
...
@@ -516,10 +513,11 @@ QStringList CppModelManager::updateIncludePaths() const
ProjectInfo
pinfo
=
it
.
value
();
includePaths
+=
pinfo
.
includePaths
;
}
includePaths
.
removeDuplicates
();
return
includePaths
;
}
QStringList
CppModelManager
::
update
FrameworkPaths
()
const
QStringList
CppModelManager
::
internal
FrameworkPaths
()
const
{
QStringList
frameworkPaths
;
QMapIterator
<
ProjectExplorer
::
Project
*
,
ProjectInfo
>
it
(
m_projects
);
...
...
@@ -528,10 +526,11 @@ QStringList CppModelManager::updateFrameworkPaths() const
ProjectInfo
pinfo
=
it
.
value
();
frameworkPaths
+=
pinfo
.
frameworkPaths
;
}
frameworkPaths
.
removeDuplicates
();
return
frameworkPaths
;
}
QByteArray
CppModelManager
::
update
DefinedMacros
()
const
QByteArray
CppModelManager
::
internal
DefinedMacros
()
const
{
QByteArray
macros
;
QMapIterator
<
ProjectExplorer
::
Project
*
,
ProjectInfo
>
it
(
m_projects
);
...
...
@@ -588,6 +587,7 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
return
;
m_projects
.
insert
(
pinfo
.
project
,
pinfo
);
m_dirty
=
true
;
}
QFuture
<
void
>
CppModelManager
::
refreshSourceFiles
(
const
QStringList
&
sourceFiles
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/cpptools/cppmodelmanager.h
+
4
−
4
View file @
3163e13c
...
...
@@ -133,10 +133,10 @@ private:
}
void
ensureUpdated
();
QStringList
update
ProjectFiles
()
const
;
QStringList
update
IncludePaths
()
const
;
QStringList
update
FrameworkPaths
()
const
;
QByteArray
update
DefinedMacros
()
const
;
QStringList
internal
ProjectFiles
()
const
;
QStringList
internal
IncludePaths
()
const
;
QStringList
internal
FrameworkPaths
()
const
;
QByteArray
internal
DefinedMacros
()
const
;
static
void
parse
(
QFutureInterface
<
void
>
&
future
,
CppPreprocessor
*
preproc
,
...
...
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