aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/plugins.qbs
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-08-29 15:58:13 +0200
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-09-12 07:59:30 +0000
commitca84a51f867988cc4a6b3f4058ab6dc9f9badf84 (patch)
treeeaa86c03279048c99281be9046435c5df9d40c4b /src/plugins/plugins.qbs
parentb95b675e41e6d7bba54733119f5f2e55c7d39133 (diff)
Clang: Use clang-format for indentation
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>
Diffstat (limited to 'src/plugins/plugins.qbs')
-rw-r--r--src/plugins/plugins.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/plugins.qbs b/src/plugins/plugins.qbs
index 9217c9e284..69fc53a661 100644
--- a/src/plugins/plugins.qbs
+++ b/src/plugins/plugins.qbs
@@ -13,6 +13,7 @@ Project {
"bineditor/bineditor.qbs",
"bookmarks/bookmarks.qbs",
"clangcodemodel/clangcodemodel.qbs",
+ "clangformat/clangformat.qbs",
"clangpchmanager/clangpchmanager.qbs",
"clangrefactoring/clangrefactoring.qbs",
"clangtools/clangtools.qbs",