forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -55,6 +55,9 @@ public:
|
||||
static bool isHeader(Kind kind);
|
||||
static bool isAmbiguousHeader(const QString &filePath);
|
||||
|
||||
bool isHeader() const;
|
||||
bool isSource() const;
|
||||
|
||||
public:
|
||||
ProjectFile() = default;
|
||||
ProjectFile(const QString &filePath, Kind kind);
|
||||
|
||||
Reference in New Issue
Block a user