From c4b80a2ec0973d18fd01e9660f36cdfc2421edee Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 3 Jul 2019 17:51:56 +0200 Subject: Doc: Update info about using compilation databases You can add files to them, switch between header and source files, and specify build and run settings for them. Change-Id: Iefc7d6bef5a8280badf2d88d0cc1af3bcf9a8485 Reviewed-by: Christian Kandeler --- .../creator-only/creator-compilation-database.qdocinc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/editors/creator-only/creator-compilation-database.qdocinc b/doc/src/editors/creator-only/creator-compilation-database.qdocinc index b1481f561d..b12b59dd70 100644 --- a/doc/src/editors/creator-only/creator-compilation-database.qdocinc +++ b/doc/src/editors/creator-only/creator-compilation-database.qdocinc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Creator documentation. @@ -40,10 +40,20 @@ To generate a compilation database from the information that the code model has, select \uicontrol Build > \uicontrol {Generate Compilation Database}. + You can add files, such as non-C files, to the project in + \e {compile_database.json.files}. + You can use the experimental Compilation Database Project Manager to open the files in a compilation database with access to all the editing features provided by the Clang code model. + To switch between header and source files, select \uicontrol Tools > + \uicontrol C++ > \uicontrol {Switch Header/Source}. + + You can specify custom build steps and run settings for compilation + database projects in the \uicontrol Projects mode. For more information, + see \l{Adding Custom Build Steps} and \l {Specifying Run Settings}. + To enable the plugin, select \uicontrol Help > \uicontrol {About Plugins} > \uicontrol {Build Systems} > \uicontrol {Compilation Database Project Manager}. Then restart \QC to load the plugin. -- cgit v1.2.3