summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppprojectfile.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-01-30 11:24:46 +0100
committerMarco Bubke <marco.bubke@qt.io>2017-01-30 13:55:58 +0000
commitc072cdfb8876df773da11222a35b7062dee2ad29 (patch)
tree954c931d5fed150fe4cb14d92a8aeb7285a27794 /src/plugins/cpptools/cppprojectfile.cpp
parentd4b1cb4a65510477d0bc4a888e66c67da6e28237 (diff)
downloadqt-creator-c072cdfb8876df773da11222a35b7062dee2ad29.tar.gz
Clang: Add ClangPchManager
Compiling every header file again and again is quite time comsuming. There are technics to improve this like preambles(a kind of automated precompiled header) but they don't share their data between translation units. This approach provides an automatically generated precompiled header for every project and subproject to improve the loading time. Change-Id: I34f5bd4db21951175920e2a9bbf6b97b1d705969 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppprojectfile.cpp')
-rw-r--r--src/plugins/cpptools/cppprojectfile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppprojectfile.cpp b/src/plugins/cpptools/cppprojectfile.cpp
index d1328b5bec..f2f6c6c1ba 100644
--- a/src/plugins/cpptools/cppprojectfile.cpp
+++ b/src/plugins/cpptools/cppprojectfile.cpp
@@ -109,6 +109,16 @@ bool ProjectFile::isSource(ProjectFile::Kind kind)
}
}
+bool ProjectFile::isHeader() const
+{
+ return isHeader(kind);
+}
+
+bool ProjectFile::isSource() const
+{
+ return isSource(kind);
+}
+
#define RETURN_TEXT_FOR_CASE(enumValue) case ProjectFile::enumValue: return #enumValue
static const char *projectFileKindToText(ProjectFile::Kind kind)
{