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
7b44f174
Commit
7b44f174
authored
Jun 03, 2009
by
Roberto Raggi
Browse files
Run the binding pass
parent
31e0b433
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CppBindings.cpp
View file @
7b44f174
...
...
@@ -567,3 +567,12 @@ bool Binder::visit(Block *)
}
// end of anonymous namespace
NamespaceBindingPtr
CPlusPlus
::
bind
(
Document
::
Ptr
doc
,
Snapshot
snapshot
)
{
NamespaceBindingPtr
global
(
new
NamespaceBinding
());
Binder
bind
(
global
.
data
());
bind
(
doc
,
snapshot
);
return
global
;
}
src/libs/cplusplus/CppBindings.h
View file @
7b44f174
...
...
@@ -30,7 +30,7 @@
#ifndef CPPBINDINGS_H
#define CPPBINDINGS_H
#include
<CPlusPlusForwardDeclarations
.h
>
#include
"CppDocument
.h
"
#include <QtCore/QList>
#include <QtCore/QSharedPointer>
...
...
@@ -171,6 +171,8 @@ public: // attributes
QList
<
ClassBinding
*>
baseClassBindings
;
};
CPLUSPLUS_EXPORT
NamespaceBindingPtr
bind
(
Document
::
Ptr
doc
,
Snapshot
snapshot
);
}
// end of namespace CPlusPlus
#endif // CPPBINDINGS_H
src/plugins/cpptools/cppmodelmanager.cpp
View file @
7b44f174
...
...
@@ -28,6 +28,7 @@
**************************************************************************/
#include <cplusplus/pp.h>
#include <cplusplus/CppBindings.h>
#include "cppmodelmanager.h"
#include "cpptoolsconstants.h"
...
...
@@ -331,6 +332,10 @@ public:
doc
->
check
();
if
(
_workingCopy
.
contains
(
doc
->
fileName
()))
{
// run the binding pass
NamespaceBindingPtr
ns
=
bind
(
doc
,
_snapshot
);
Q_UNUSED
(
ns
);
// check for undefined symbols.
CheckUndefinedBaseClasses
checkUndefinedBaseClasses
(
doc
->
control
());
...
...
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