Skip to content
Commit bd4df64e authored by Igor Kushnir's avatar Igor Kushnir
Browse files

.clang-format: disable formatting app and file templates

Application and file templates are used by regular KDevelop users. So we
should allow template authors to define formatting rather than enforce
KDevelop's formatting style.

Plus the template syntax is extended C++, so there is breaking diff like
this in app_templates/cpp/CMake/cmake_kdevplugin/src/%{APPNAMELC}.cpp:
-K_PLUGIN_FACTORY_WITH_JSON(%{APPNAMEID}Factory, "%{APPNAMELC}.json", registerPlugin<%{APPNAMEID}>(); )
+K_PLUGIN_FACTORY_WITH_JSON(% {APPNAMEID} Factory, "%{APPNAMELC}.json", registerPlugin<% {APPNAMEID}>();)

-%{APPNAMEID}::%{APPNAMEID}(QObject *parent, const QVariantList& args)
+    %
+{
+    APPNAMEID
+}
+::
+        % {APPNAMEID}(QObject* parent, const QVariantList& args)
     : KDevelop::IPlugin(QStringLiteral("%{APPNAMELC}"), parent)
 {
     Q_UNUSED(args);

-    qCDebug(PLUGIN_%{APPNAMEUC}) << "Hello world, my plugin is loaded!";
+    qCDebug(PLUGIN_ % {APPNAMEUC}) << "Hello world, my plugin is loaded!";
 }
parent 8316577b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment