From c072cdfb8876df773da11222a35b7062dee2ad29 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Mon, 30 Jan 2017 11:24:46 +0100 Subject: 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 Reviewed-by: Tim Jenssen --- .../source/pchcreatorinterface.h | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/tools/clangpchmanagerbackend/source/pchcreatorinterface.h (limited to 'src/tools/clangpchmanagerbackend/source/pchcreatorinterface.h') diff --git a/src/tools/clangpchmanagerbackend/source/pchcreatorinterface.h b/src/tools/clangpchmanagerbackend/source/pchcreatorinterface.h new file mode 100644 index 0000000000..89aac39bd5 --- /dev/null +++ b/src/tools/clangpchmanagerbackend/source/pchcreatorinterface.h @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +****************************************************************************/ + +#pragma once + +#include "idpaths.h" +#include "projectpartpch.h" + +#include + +namespace ClangBackEnd { + +class PchCreatorInterface +{ +public: + virtual ~PchCreatorInterface(); + + virtual void generatePchs(V2::ProjectPartContainers &&projectsParts) = 0; + virtual std::vector takeProjectPartPchs() = 0; + virtual std::vector takeProjectsIncludes() = 0; +}; + +} // namespace ClangBackEnd -- cgit v1.2.1