Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
c9e50605
Commit
c9e50605
authored
Mar 15, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of extra (non Creator-friendly) include paths.
parent
d1cb9fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.cpp
+25
-1
No files found.
src/plugins/cpptools/cppmodelmanager.cpp
View file @
c9e50605
...
...
@@ -190,7 +190,31 @@ void CppPreprocessor::setWorkingCopy(const CppTools::CppModelManagerInterface::W
{
m_workingCopy
=
workingCopy
;
}
void
CppPreprocessor
::
setIncludePaths
(
const
QStringList
&
includePaths
)
{
m_includePaths
=
includePaths
;
}
{
m_includePaths
.
clear
();
for
(
int
i
=
0
;
i
<
includePaths
.
size
();
++
i
)
{
const
QString
path
=
includePaths
.
at
(
i
);
#ifdef Q_OS_DARWIN
if
(
i
+
1
<
includePaths
.
size
()
&&
path
.
endsWith
(
QLatin1String
(
".framework/Headers"
)))
{
const
QFileInfo
pathInfo
(
path
);
const
QFileInfo
frameworkFileInfo
(
pathInfo
.
path
());
const
QString
frameworkName
=
frameworkFileInfo
.
baseName
();
const
QFileInfo
nextIncludePath
=
includePaths
.
at
(
i
+
1
);
if
(
nextIncludePath
.
fileName
()
==
frameworkName
)
{
// We got a QtXXX.framework/Headers followed by $QTDIR/include/QtXXX.
// In this case we prefer to include files from $QTDIR/include/QtXXX.
continue
;
}
}
m_includePaths
.
append
(
path
);
#else
m_includePaths
.
append
(
path
);
#endif
}
}
void
CppPreprocessor
::
setFrameworkPaths
(
const
QStringList
&
frameworkPaths
)
{
m_frameworkPaths
=
frameworkPaths
;
}
...
...
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