aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/mockup
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2018-08-14 13:07:04 +0200
committerMarco Bubke <marco.bubke@qt.io>2018-08-14 15:03:51 +0000
commit7bae47642c3af7316ffe816bbf7a092b7f536c1e (patch)
tree5e1aad4cea4dec5837e3b6413a995a934d3a13e0 /tests/unit/mockup
parentb592339b4d1741319b52144e23d255fa59ef0b63 (diff)
Add optional system include to compiler option builder
System includes suppress warnings and prevent indexing of unwanted symbols. Using system includes for all includes outside of the project can be quite advantageous. The rootProjectDirectory() can be extended to be set in the project settings. An automatic generation could be possible but could create an unwanted path which includes files outside of the perceived project. Change-Id: Ib9d3158f14f41efe1f6657f962d5c4437bb324b2 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'tests/unit/mockup')
-rw-r--r--tests/unit/mockup/projectexplorer/project.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/mockup/projectexplorer/project.h b/tests/unit/mockup/projectexplorer/project.h
index ea040fbc49..78b4211dca 100644
--- a/tests/unit/mockup/projectexplorer/project.h
+++ b/tests/unit/mockup/projectexplorer/project.h
@@ -36,6 +36,10 @@ public:
Utils::FileName projectDirectory() const {
return Utils::FileName();
}
+
+ Utils::FileName rootProjectDirectory() const {
+ return Utils::FileName();
+ }
};
}