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>
Showing
- src/plugins/cpptools/cppmodelmanager.cpp 14 additions, 6 deletionssrc/plugins/cpptools/cppmodelmanager.cpp
- src/plugins/cpptools/cppmodelmanager_test.cpp 82 additions, 0 deletionssrc/plugins/cpptools/cppmodelmanager_test.cpp
- src/plugins/cpptools/cpptoolsplugin.h 1 addition, 0 deletionssrc/plugins/cpptools/cpptoolsplugin.h
- tests/cppmodelmanager/testdata_project1/foo.cpp 7 additions, 0 deletionstests/cppmodelmanager/testdata_project1/foo.cpp
- tests/cppmodelmanager/testdata_project1/foo.h 12 additions, 0 deletionstests/cppmodelmanager/testdata_project1/foo.h
- tests/cppmodelmanager/testdata_project1/main.cpp 9 additions, 0 deletionstests/cppmodelmanager/testdata_project1/main.cpp
- tests/cppmodelmanager/testdata_project2/bar.cpp 7 additions, 0 deletionstests/cppmodelmanager/testdata_project2/bar.cpp
- tests/cppmodelmanager/testdata_project2/bar.h 12 additions, 0 deletionstests/cppmodelmanager/testdata_project2/bar.h
- tests/cppmodelmanager/testdata_project2/main.cpp 9 additions, 0 deletionstests/cppmodelmanager/testdata_project2/main.cpp
Loading
Please register or sign in to comment