aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* 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>