From 8ea14767af70f7c0c2e9940f018e7b17e6f00205 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 10 Jul 2013 14:46:08 +0200 Subject: CppTools: Rework handling of ProjectInfo changes (a) The code model manager figures out by itself which files were added or removed from the project. If this was done successfully, check also the timestamp of the common files and reindex if necessary. (b) A full reindexing is only triggered if the project configuration changes (defines, includes, framework paths). (c) If project files were removed, the garbage collector is called. Task-number: QTCREATORBUG-9730 Change-Id: Ib855614b070880576233a3525813617c967a72f3 Reviewed-by: Fawzi Mohamed --- tests/cppmodelmanager/testdata_refresh2/source.cpp | 1 + tests/cppmodelmanager/testdata_refresh2/source2.cpp | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/cppmodelmanager/testdata_refresh2/source.cpp create mode 100644 tests/cppmodelmanager/testdata_refresh2/source2.cpp (limited to 'tests/cppmodelmanager') diff --git a/tests/cppmodelmanager/testdata_refresh2/source.cpp b/tests/cppmodelmanager/testdata_refresh2/source.cpp new file mode 100644 index 00000000000..d459c19d5ef --- /dev/null +++ b/tests/cppmodelmanager/testdata_refresh2/source.cpp @@ -0,0 +1 @@ +int someGlobal; diff --git a/tests/cppmodelmanager/testdata_refresh2/source2.cpp b/tests/cppmodelmanager/testdata_refresh2/source2.cpp new file mode 100644 index 00000000000..45b14673159 --- /dev/null +++ b/tests/cppmodelmanager/testdata_refresh2/source2.cpp @@ -0,0 +1 @@ +int f() {} -- cgit v1.2.3