forked from qt-creator/qt-creator
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 <christian.kandeler@qt.io>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2018 The Qt Company Ltd.
|
** Copyright (C) 2019 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** 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
|
To generate a compilation database from the information that the code model
|
||||||
has, select \uicontrol Build > \uicontrol {Generate Compilation Database}.
|
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
|
You can use the experimental Compilation Database Project Manager to open
|
||||||
the files in a compilation database with access to all the editing features
|
the files in a compilation database with access to all the editing features
|
||||||
provided by the Clang code model.
|
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} >
|
To enable the plugin, select \uicontrol Help > \uicontrol {About Plugins} >
|
||||||
\uicontrol {Build Systems} > \uicontrol {Compilation Database Project Manager}.
|
\uicontrol {Build Systems} > \uicontrol {Compilation Database Project Manager}.
|
||||||
Then restart \QC to load the plugin.
|
Then restart \QC to load the plugin.
|
||||||
|
Reference in New Issue
Block a user