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
Tobias Hunger
qt-creator
Commits
60caec48
Commit
60caec48
authored
Dec 07, 2009
by
Roberto Raggi
Browse files
Store the documents in an hash.
parent
14376c3c
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CppDocument.cpp
View file @
60caec48
...
...
@@ -558,7 +558,7 @@ QStringList Snapshot::filesDependingOn(const QString &fileName) const
return
deps
;
}
Q
Map
<
QString
,
QStringList
>
Snapshot
::
dependencyTable
()
const
Q
Hash
<
QString
,
QStringList
>
Snapshot
::
dependencyTable
()
const
{
const
int
N
=
size
();
QVector
<
QString
>
files
(
N
);
...
...
@@ -568,7 +568,7 @@ QMap<QString, QStringList> Snapshot::dependencyTable() const
dependency_helper
(
files
,
fileIndex
,
includes
,
includeMap
);
Q
Map
<
QString
,
QStringList
>
depMap
;
Q
Hash
<
QString
,
QStringList
>
depMap
;
for
(
int
index
=
0
;
index
<
files
.
size
();
++
index
)
{
QStringList
deps
;
...
...
src/libs/cplusplus/CppDocument.h
View file @
60caec48
...
...
@@ -33,15 +33,10 @@
#include <CPlusPlusForwardDeclarations.h>
#include "Macro.h"
#include <QByteArray>
#include <QFileInfo>
#include <QList>
#include <QMap>
#include <QBitArray>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <QDateTime>
#include <QtCore/QSharedPointer>
#include <QtCore/QDateTime>
#include <QtCore/QHash>
#include <QtCore/QFileInfo>
namespace
CPlusPlus
{
...
...
@@ -323,7 +318,7 @@ private:
class
CPLUSPLUS_EXPORT
Snapshot
{
typedef
Q
Map
<
QString
,
Document
::
Ptr
>
_Base
;
typedef
Q
Hash
<
QString
,
Document
::
Ptr
>
_Base
;
public:
Snapshot
();
...
...
@@ -358,7 +353,7 @@ public:
QSharedPointer
<
NamespaceBinding
>
globalNamespaceBinding
(
Document
::
Ptr
doc
)
const
;
QStringList
filesDependingOn
(
const
QString
&
fileName
)
const
;
Q
Map
<
QString
,
QStringList
>
dependencyTable
()
const
;
Q
Hash
<
QString
,
QStringList
>
dependencyTable
()
const
;
private:
void
simplified_helper
(
Document
::
Ptr
doc
,
Snapshot
*
snapshot
)
const
;
...
...
src/libs/cplusplus/LookupContext.cpp
View file @
60caec48
...
...
@@ -41,8 +41,6 @@
#include <QtDebug>
using
namespace
CPlusPlus
;
QT_BEGIN_NAMESPACE
uint
qHash
(
const
CPlusPlus
::
LookupItem
&
key
)
{
...
...
@@ -52,6 +50,13 @@ uint qHash(const CPlusPlus::LookupItem &key)
}
QT_END_NAMESPACE
uint
CPlusPlus
::
qHash
(
const
CPlusPlus
::
LookupItem
&
key
)
{
return
QT_PREPEND_NAMESPACE
(
qHash
)(
key
);
}
using
namespace
CPlusPlus
;
/////////////////////////////////////////////////////////////////////
// LookupContext
/////////////////////////////////////////////////////////////////////
...
...
src/libs/cplusplus/LookupContext.h
View file @
60caec48
...
...
@@ -228,12 +228,12 @@ private:
QList
<
Scope
*>
_visibleScopes
;
};
}
// end of namespace CPlusPlus
uint
qHash
(
const
CPlusPlus
::
LookupItem
&
result
);
}
// end of namespace CPlusPlus
QT_BEGIN_NAMESPACE
uint
qHash
(
const
CPlusPlus
::
LookupItem
&
result
);
QT_END_NAMESPACE
#endif // CPLUSPLUS_LOOKUPCONTEXT_H
src/plugins/cpptools/cppmodelmanagerinterface.h
View file @
60caec48
...
...
@@ -35,6 +35,7 @@
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QtCore/QPointer>
#include <QtCore/QStringList>
namespace
ProjectExplorer
{
class
Project
;
...
...
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