aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cpptools.qbs
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-10-08 13:32:36 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-10-12 15:08:24 +0000
commit6b6ad446ebdff5709278e299f525dba6173f3427 (patch)
tree719a643bff78fb2522326ea0c2102cdba1db5d67 /src/plugins/cpptools/cpptools.qbs
parenteccc5676516f2ee22884cd9cbf15e6dba76fc632 (diff)
CppTools: Make FollowSymbol respect projects
Finding the class definition for a forward declaration or finding the function definition from its declaration is mostly determined by the file iteration order. Documents with the most common path prefix are checked first. This works fine as long as the files of your project have a common ancestor. If that's not the case, FollowSymbol might take you to the definition within another project. Fix that issue by considering the project part id when constructing the file iteration order. Since the cached file iteration order now depends on the projects, ensure to clear it if projects are added, changed or removed. Task-number: QTCREATORBUG-15116 Change-Id: I529166bac363959c9fee0b946747fd0370a88809 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpptools.qbs')
-rw-r--r--src/plugins/cpptools/cpptools.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptools.qbs b/src/plugins/cpptools/cpptools.qbs
index 065ea0e4c1..611316c4d9 100644
--- a/src/plugins/cpptools/cpptools.qbs
+++ b/src/plugins/cpptools/cpptools.qbs
@@ -49,6 +49,7 @@ QtcPlugin {
"cppcurrentdocumentfilter.cpp", "cppcurrentdocumentfilter.h",
"cppdoxygen.cpp", "cppdoxygen.h",
"cppeditoroutline.cpp", "cppeditoroutline.h",
+ "cppfileiterationorder.cpp", "cppfileiterationorder.h",
"cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui",
"cppfindreferences.cpp", "cppfindreferences.h",
"cppfunctionsfilter.cpp", "cppfunctionsfilter.h",