summaryrefslogtreecommitdiff
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* ClangFormat: Correct .clang-formatYixue Wang2023-02-161-5/+5
| | | | | | | | .clang-format contains some disallowed values for some fields. These fields are corrected according to ClangFormatStyleOptions. Change-Id: I32a40cdfeabee550ebf23f6c9cb3d1fafc3b764b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ClangFormat: Parse clang-format file when neededMarcus Tillmanns2022-12-201-1/+1
| | | | | | | | | | | | Previously the .clang-format was parsed even if there is an override active. Fixed .clang-format to follow style-guide more closely. Change-Id: I39c5e5793cfe9e8a996e084e4ba169231a9bcebb Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* formatting: Remove braces rule from .clang-formatMarcus Tillmanns2022-04-261-1/+0
| | | | | | | | The RemoveBracesLLVM option is not completely compatible with all exceptions from our code style guide, so we have to remove it. Change-Id: I4bf4405e4463eb0137ca5c2c0ad3d86deb8e903b Reviewed-by: hjk <hjk@qt.io>
* docker-plugin: fix daemon stateMarcus Tillmanns2022-04-071-0/+1
| | | | | | | | Changed daemon state to actually check the docker runtime to determine if its available or not. Change-Id: I9e183658dfc7c34e229aec2a332cf303793284e5 Reviewed-by: hjk <hjk@qt.io>
* Revert "ClangFormat: Relax the clang format file a little bit"Eike Ziller2020-11-021-3/+19
| | | | | | | | | | | | | | | That change does an experiment on the clang format file without discussing the results before. It wasn't tested and discussed on a larger code base, and ignores tests/manual/clang-format-for-qtc. Individual ("pre-discussion") experiments with the clang-format file should be done in a separate experimental version instead (e.g. somewhere in dist/). This reverts commit 009c2745e27a9b1e9bc3886f159c271fb491c7d4. Change-Id: I5f9fa50d2ccc63807218ae5d193a3a0718956576 Reviewed-by: hjk <hjk@qt.io>
* ClangFormat: Relax the clang format file a little bitMarco Bubke2020-06-301-19/+3
| | | | | | | | | It will not always insert a line break after 100 sign but tries to find middle ground. Normally it's not a problem but it will prevent some strange looking formatting. Change-Id: I0ba987f944d360b3d0f0d8dce29ef825696b1a92 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangFormat: Use by default the same style as Qt Creator usesIvan Donchevskii2019-03-071-0/+2
| | | | | Change-Id: Iae0f774873f66fcd4e297cfc260a8541f4373e36 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* ClangFormat: Enable BreakStringLiterals in .clang-formatIvan Donchevskii2018-11-271-1/+1
| | | | | | Change-Id: Icbd601c236cb5ad620d1bc7217a8629fe50a0046 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Use clang-format for indentationIvan Donchevskii2018-09-121-0/+115
This is the new experimental plugin based on LibFormat. It replaces the default indenter for CppEditorDocument and applies clang-format after the CR or the set of 'electric' characters. Uses the global .clang-format kept in QtC settings or the one for current project. Both can be configured. For indentation some style modifications and code manipulations are done to prevent line shrinking when it's not expected. Manual indentation uses unmodified style from .clang-format file. Change-Id: I6279b805e418e1804b553efa615f5c843f395a58 Reviewed-by: Marco Bubke <marco.bubke@qt.io>