aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangformat/ClangFormat.json.in
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/clangformat/ClangFormat.json.in
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/clangformat/ClangFormat.json.in')
-rw-r--r--src/plugins/clangformat/ClangFormat.json.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/clangformat/ClangFormat.json.in b/src/plugins/clangformat/ClangFormat.json.in
new file mode 100644
index 0000000000..1c818c2f9e
--- /dev/null
+++ b/src/plugins/clangformat/ClangFormat.json.in
@@ -0,0 +1,20 @@
+{
+ \"Name\" : \"ClangFormat\",
+ \"Version\" : \"$$QTCREATOR_VERSION\",
+ \"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
+ \"Experimental\" : true,
+ \"Vendor\" : \"The Qt Company Ltd\",
+ \"Copyright\" : \"(C) $$QTCREATOR_COPYRIGHT_YEAR The Qt Company Ltd\",
+ \"License\" : [ \"Commercial Usage\",
+ \"\",
+ \"Licensees holding valid Qt Commercial licenses may use this plugin in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and The Qt Company.\",
+ \"\",
+ \"GNU General Public License Usage\",
+ \"\",
+ \"Alternatively, this plugin may be used under the terms of the GNU General Public License version 3 as published by the Free Software Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT included in the packaging of this plugin. Please review the following information to ensure the GNU General Public License requirements will be met: https://www.gnu.org/licenses/gpl-3.0.html.\"
+ ],
+ \"Category\" : \"C++\",
+ \"Description\" : \"clang-format indentation plugin.\",
+ \"Url\" : \"http://www.qt.io\",
+ $$dependencyList
+}