diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-06-28 11:26:02 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-06-28 17:54:53 +0200 |
commit | 1fad00f9991b86c3a329410c95f148b6ce3ef0d3 (patch) | |
tree | 5994350ea1c4ca4824cff003a1ef4dc4f9fbfb86 /tests/cppmodelmanager/testdata_project1 | |
parent | 377078ea27525744bf5e8d934b671dcc0f9fcb1f (diff) | |
download | qt-creator-1fad00f9991b86c3a329410c95f148b6ce3ef0d3.tar.gz |
CppTools: Fix snapshot in case another project is opened
When a second project was opened the snapshot was reset. That resulted
in all kinds of problems since from then on the code model effectively
was not aware of the files of the first project.
The regression was introduced by commit a0d6df7b.
Change-Id: I1ccc9de68177205b49a4ba8ead2bc8abe4592b32
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'tests/cppmodelmanager/testdata_project1')
-rw-r--r-- | tests/cppmodelmanager/testdata_project1/foo.cpp | 7 | ||||
-rw-r--r-- | tests/cppmodelmanager/testdata_project1/foo.h | 12 | ||||
-rw-r--r-- | tests/cppmodelmanager/testdata_project1/main.cpp | 9 |
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/cppmodelmanager/testdata_project1/foo.cpp b/tests/cppmodelmanager/testdata_project1/foo.cpp new file mode 100644 index 0000000000..cf92d5c5cc --- /dev/null +++ b/tests/cppmodelmanager/testdata_project1/foo.cpp @@ -0,0 +1,7 @@ +// Copyright header + +#include "foo.h" + +Foo::Foo() +{ +} diff --git a/tests/cppmodelmanager/testdata_project1/foo.h b/tests/cppmodelmanager/testdata_project1/foo.h new file mode 100644 index 0000000000..b427107633 --- /dev/null +++ b/tests/cppmodelmanager/testdata_project1/foo.h @@ -0,0 +1,12 @@ +// Copyright header + +#ifndef FOO_H +#define FOO_H + +class Foo +{ +public: + Foo(); +}; + +#endif // FOO_H diff --git a/tests/cppmodelmanager/testdata_project1/main.cpp b/tests/cppmodelmanager/testdata_project1/main.cpp new file mode 100644 index 0000000000..eca708ea3f --- /dev/null +++ b/tests/cppmodelmanager/testdata_project1/main.cpp @@ -0,0 +1,9 @@ +// Copyright header + +#include "foo.h" + +int main() +{ + Foo foo; + return 1; +} |