diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2017-07-14 13:06:51 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2017-07-14 13:25:06 +0000 |
commit | 700fc468c7ef7aed028d7d6de5cbd1b9fafbef82 (patch) | |
tree | 3ac4bc5ad7e2452ec8cab41c5ccd944f00c46f79 /doc | |
parent | ca660c796cba7af467c75608f30870411f690574 (diff) | |
download | qt-creator-700fc468c7ef7aed028d7d6de5cbd1b9fafbef82.tar.gz |
Doc: Describe new Clang Code Model options
The controls in the Options view have been rearranged, so the
text was rearranged accordingly.
Updated and added screenshots.
Change-Id: Ideb8fbd43d7872091980fc1b17d6593ed2f356eb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/images/qtcreator-clang-code-model-build-settings.png | bin | 0 -> 43490 bytes | |||
-rw-r--r-- | doc/images/qtcreator-clang-code-model-options.png | bin | 16323 -> 58844 bytes | |||
-rw-r--r-- | doc/src/editors/creator-clang-codemodel.qdoc | 41 |
3 files changed, 29 insertions, 12 deletions
diff --git a/doc/images/qtcreator-clang-code-model-build-settings.png b/doc/images/qtcreator-clang-code-model-build-settings.png Binary files differnew file mode 100644 index 0000000000..cc7d3d8cf9 --- /dev/null +++ b/doc/images/qtcreator-clang-code-model-build-settings.png diff --git a/doc/images/qtcreator-clang-code-model-options.png b/doc/images/qtcreator-clang-code-model-options.png Binary files differindex ff9e367c02..c48856a201 100644 --- a/doc/images/qtcreator-clang-code-model-options.png +++ b/doc/images/qtcreator-clang-code-model-options.png diff --git a/doc/src/editors/creator-clang-codemodel.qdoc b/doc/src/editors/creator-clang-codemodel.qdoc index cdb7c2d2d1..24cf8be38d 100644 --- a/doc/src/editors/creator-clang-codemodel.qdoc +++ b/doc/src/editors/creator-clang-codemodel.qdoc @@ -129,14 +129,29 @@ \image qtcreator-clang-code-model-options.png - \li In the \uicontrol {Configuration to use} list, configure the - diagnostics that Clang should issue. + \li To instruct the code model to interpret ambiguous header files as C + language files if you develop mainly using C, select the + \uicontrol {Interpret ambiguous headers as C headers} check box. + + \li To process pre-compiled headers, deselect the + \uicontrol {Ignore pre-compiled headers} check box. - You can either select one of the predefined configurations, or - create a copy of a configuration and edit it to fit your needs: + \li To avoid out-of-memory crashes caused by indexing huge source files + that are typically auto-generated by scripts or code, the size of + files to index is limited to 5MB by default. To adjust the limit, + edit the value for the \uicontrol {Do not index files greater than} + check box. To index all files, deselect the check box. + + \li In the \uicontrol {Clang Code Model Warnings} group, configure the + diagnostics that Clang should issue. \list + \li In the \uicontrol {Configuration to use} list, select one of + the predefined configurations, or select \uicontrol Copy to + create a copy of a configuration and edit it to fit your + needs. + \li \uicontrol {Pedantic Warnings} uses the \c -Wpendantic option that requests all the warnings demanded by strict ISO C and ISO C++. @@ -160,15 +175,17 @@ {Options to Request or Suppress Warnings} or the GCC or Clang manual pages. - \li To process pre-compiled headers, deselect the - \uicontrol {Ignore pre-compiled headers} check box. + \endlist - \li To avoid out-of-memory crashes caused by indexing huge source files - that are typically auto-generated by scripts or code, the size of - files to index is limited to 5MB by default. To adjust the limit, - edit the value for the \uicontrol {Do not index files greater than} - check box. To index all files, deselect the check box. + You can specify Clang settings at project level in the build settings of + the project by selecting \uicontrol Projects > + \uicontrol {Clang Code Model}. In addition to configuring the diagnostics, + you can select the \uicontrol {Enable MSVC-compliant template parsing} check + box to parse templates in a MSVC-compliant way. This enables Clang to parse + headers for example from Active Template Library (ATL) or Windows Runtime + Library (WRL). However, using the relaxed and extended rules means that no + highlighting or completion can be provided within template functions. - \endlist + \image qtcreator-clang-code-model-build-settings.png */ |