aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/CppEditor.json.in
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-07-24 16:14:26 +0200
committerEike Ziller <eike.ziller@qt.io>2023-07-25 13:21:16 +0000
commita419670ff5384ed16f4ae00b3da497792931a771 (patch)
treeeaa01772f1f5e98d2f92257ed62586ee702986ec /src/plugins/cppeditor/CppEditor.json.in
parentb11a6900e601e605475e94f46e2f5d85ba22a2df (diff)
Build: Change plugin json.in files to CMake style
They were still using variables in qmake style. Directly use CMake variables in the json.in files and remove the no longer needed escaping of quotes. Adds a fatal message if it detects the old style in a .json.in file for easier porting. Change-Id: I8de88d8db2da55781f0e9d72eda03f943723188e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/CppEditor.json.in')
-rw-r--r--src/plugins/cppeditor/CppEditor.json.in220
1 files changed, 110 insertions, 110 deletions
diff --git a/src/plugins/cppeditor/CppEditor.json.in b/src/plugins/cppeditor/CppEditor.json.in
index b3c0149291..0e9d50eb4b 100644
--- a/src/plugins/cppeditor/CppEditor.json.in
+++ b/src/plugins/cppeditor/CppEditor.json.in
@@ -1,125 +1,125 @@
{
- \"Name\" : \"CppEditor\",
- \"Version\" : \"$$QTCREATOR_VERSION\",
- \"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\",
- \"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.\"
+ "Name" : "CppEditor",
+ "Version" : "${IDE_VERSION}",
+ "CompatVersion" : "${IDE_VERSION_COMPAT}",
+ "Vendor" : "The Qt Company Ltd",
+ "Copyright" : "(C) ${IDE_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\" : \"C/C++ editor component.\",
- \"Url\" : \"http://www.qt.io\",
- $$dependencyList,
+ "Category" : "C++",
+ "Description" : "C/C++ editor component.",
+ "Url" : "http://www.qt.io",
+ ${IDE_PLUGIN_DEPENDENCIES},
- \"Mimetypes\" : [
- \"<?xml version=\'1.0\' encoding=\'UTF-8\'?>\",
- \"<mime-info xmlns=\'http://www.freedesktop.org/standards/shared-mime-info\'>\",
- \" <mime-type type=\'text/x-csrc\'>\",
- \" <comment>C source code</comment>\",
- \" <sub-class-of type=\'text/plain\'/>\",
- \" <alias type=\'text/x-c\'/>\",
- \" <glob pattern=\'*.c\' case-sensitive=\'true\' weight=\'70\'/>\",
- \" </mime-type>\",
+ "Mimetypes" : [
+ "<?xml version='1.0' encoding='UTF-8'?>",
+ "<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>",
+ " <mime-type type='text/x-csrc'>",
+ " <comment>C source code</comment>",
+ " <sub-class-of type='text/plain'/>",
+ " <alias type='text/x-c'/>",
+ " <glob pattern='*.c' case-sensitive='true' weight='70'/>",
+ " </mime-type>",
- \" <mime-type type=\'text/vnd.nvidia.cuda.csrc\'>\",
- \" <sub-class-of type=\'text/x-csrc\'/>\",
- \" <comment>NVIDIA CUDA C source code</comment>\",
- \" <glob pattern=\'*.cu\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/vnd.nvidia.cuda.csrc'>",
+ " <sub-class-of type='text/x-csrc'/>",
+ " <comment>NVIDIA CUDA C source code</comment>",
+ " <glob pattern='*.cu'/>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-chdr\'>\",
- \" <comment>C header</comment>\",
- \" <sub-class-of type=\'text/x-csrc\'/>\",
- \" <!-- reduce weight from freedesktop to avoid conflict with text/x-c++hdr -->\",
- \" <glob pattern=\'*.h\' weight=\'30\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-chdr'>",
+ " <comment>C header</comment>",
+ " <sub-class-of type='text/x-csrc'/>",
+ " <!-- reduce weight from freedesktop to avoid conflict with text/x-c++hdr -->",
+ " <glob pattern='*.h' weight='30'/>",
+ " </mime-type>",
- \" <!-- Those are used to find matching headers by the CppEditor plugin,\",
- \" so, they should match -->\",
- \" <mime-type type=\'text/x-c++hdr\'>\",
- \" <sub-class-of type=\'text/x-chdr\'/>\",
- \" <comment>C++ header</comment>\",
- \" <glob pattern=\'*.hh\' weight=\'70\'/>\",
- \" <glob pattern=\'*.hxx\' weight=\'70\'/>\",
- \" <glob pattern=\'*.h++\' weight=\'70\'/>\",
- \" <glob pattern=\'*.hpp\' weight=\'70\'/>\",
- \" <glob pattern=\'*.hp\' weight=\'70\'/>\",
- \" <!-- Additions to freedesktop: -->\",
- \" <glob pattern=\'*.h\' weight=\'70\'/>\",
- \" <glob pattern=\'*.H\' weight=\'70\'/>\",
- \" <glob pattern=\'*.inl\' weight=\'70\'/>\",
- \" <glob pattern=\'*.tcc\' weight=\'70\'/>\",
- \" <glob pattern=\'*.tpp\' weight=\'70\'/>\",
- \" <glob pattern=\'*.t++\' weight=\'70\'/>\",
- \" <glob pattern=\'*.txx\' weight=\'70\'/>\",
- \" <!-- Find include guards of header files without extension, for\",
- \" example, STL ones like <string>. Those can have a big initial\",
- \" comment exceeding 1000 chars, though. -->\",
- \" <magic priority=\'40\'>\",
- \" <match value=\'#ifndef \' type=\'string\' offset=\'0:2000\'/>\",
- \" <match value=\'#if \' type=\'string\' offset=\'0:2000\'/>\",
- \" <match value=\'#include \' type=\'string\' offset=\'0:2000\'/>\",
- \" </magic>\",
- \" </mime-type>\",
+ " <!-- Those are used to find matching headers by the CppEditor plugin,",
+ " so, they should match -->",
+ " <mime-type type='text/x-c++hdr'>",
+ " <sub-class-of type='text/x-chdr'/>",
+ " <comment>C++ header</comment>",
+ " <glob pattern='*.hh' weight='70'/>",
+ " <glob pattern='*.hxx' weight='70'/>",
+ " <glob pattern='*.h++' weight='70'/>",
+ " <glob pattern='*.hpp' weight='70'/>",
+ " <glob pattern='*.hp' weight='70'/>",
+ " <!-- Additions to freedesktop: -->",
+ " <glob pattern='*.h' weight='70'/>",
+ " <glob pattern='*.H' weight='70'/>",
+ " <glob pattern='*.inl' weight='70'/>",
+ " <glob pattern='*.tcc' weight='70'/>",
+ " <glob pattern='*.tpp' weight='70'/>",
+ " <glob pattern='*.t++' weight='70'/>",
+ " <glob pattern='*.txx' weight='70'/>",
+ " <!-- Find include guards of header files without extension, for",
+ " example, STL ones like <string>. Those can have a big initial",
+ " comment exceeding 1000 chars, though. -->",
+ " <magic priority='40'>",
+ " <match value='#ifndef ' type='string' offset='0:2000'/>",
+ " <match value='#if ' type='string' offset='0:2000'/>",
+ " <match value='#include ' type='string' offset='0:2000'/>",
+ " </magic>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-c++src\'>\",
- \" <comment>C++ source code</comment>\",
- \" <sub-class-of type=\'text/x-csrc\'/>\",
- \" <glob pattern=\'*.cpp\' weight=\'70\'/>\",
- \" <glob pattern=\'*.cxx\' weight=\'70\'/>\",
- \" <glob pattern=\'*.cc\' weight=\'70\'/>\",
- \" <glob pattern=\'*.C\' case-sensitive=\'true\' weight=\'70\'/>\",
- \" <glob pattern=\'*.c++\' weight=\'70\'/>\",
- \" <!-- Additions to freedesktop: -->\",
- \" <glob pattern=\'*.cp\' weight=\'70\'/>\",
- \" <magic priority=\'30\'>\",
- \" <match value=\'-*- C++ -*-\' type=\'string\' offset=\'0:30\'/>\",
- \" </magic>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-c++src'>",
+ " <comment>C++ source code</comment>",
+ " <sub-class-of type='text/x-csrc'/>",
+ " <glob pattern='*.cpp' weight='70'/>",
+ " <glob pattern='*.cxx' weight='70'/>",
+ " <glob pattern='*.cc' weight='70'/>",
+ " <glob pattern='*.C' case-sensitive='true' weight='70'/>",
+ " <glob pattern='*.c++' weight='70'/>",
+ " <!-- Additions to freedesktop: -->",
+ " <glob pattern='*.cp' weight='70'/>",
+ " <magic priority='30'>",
+ " <match value='-*- C++ -*-' type='string' offset='0:30'/>",
+ " </magic>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-qdoc\'>\",
- \" <comment>Qt documentation file</comment>\",
- \" <sub-class-of type=\'text/plain\'/>\",
- \" <glob pattern=\'*.qdoc\' weight=\'70\'/>\",
- \" <glob pattern=\'*.qdocinc\' weight=\'70\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-qdoc'>",
+ " <comment>Qt documentation file</comment>",
+ " <sub-class-of type='text/plain'/>",
+ " <glob pattern='*.qdoc' weight='70'/>",
+ " <glob pattern='*.qdocinc' weight='70'/>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-moc\'>\",
- \" <comment>Qt MOC file</comment>\",
- \" <!-- Fix to freedesktop: moc is C++ source -->\",
- \" <sub-class-of type=\'text/x-c++src\'/>\",
- \" <glob pattern=\'*.moc\' weight=\'70\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-moc'>",
+ " <comment>Qt MOC file</comment>",
+ " <!-- Fix to freedesktop: moc is C++ source -->",
+ " <sub-class-of type='text/x-c++src'/>",
+ " <glob pattern='*.moc' weight='70'/>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-objc++src\'>\",
- \" <comment>Objective-C++ source code</comment>\",
- \" <sub-class-of type=\'text/x-c++src\'/>\",
- \" <sub-class-of type=\'text/x-objcsrc\'/>\",
- \" <glob pattern=\'*.mm\' weight=\'70\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-objc++src'>",
+ " <comment>Objective-C++ source code</comment>",
+ " <sub-class-of type='text/x-c++src'/>",
+ " <sub-class-of type='text/x-objcsrc'/>",
+ " <glob pattern='*.mm' weight='70'/>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-objcsrc\'>\",
- \" <comment>Objective-C source code</comment>\",
- \" <sub-class-of type=\'text/x-csrc\'/>\",
- \" <glob pattern=\'*.m\' weight=\'70\'/>\",
- \" <magic priority=\'30\'>\",
- \" <match value=\'#import\' type=\'string\' offset=\'0\'/>\",
- \" </magic>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-objcsrc'>",
+ " <comment>Objective-C source code</comment>",
+ " <sub-class-of type='text/x-csrc'/>",
+ " <glob pattern='*.m' weight='70'/>",
+ " <magic priority='30'>",
+ " <match value='#import' type='string' offset='0'/>",
+ " </magic>",
+ " </mime-type>",
- \" <mime-type type=\'text/x-dsrc\'>\",
- \" <comment>D source code</comment>\",
- \" <sub-class-of type=\'text/plain\'/>\",
- \" <glob pattern=\'*.d\'/>\",
- \" <glob pattern=\'*.di\'/>\",
- \" </mime-type>\",
+ " <mime-type type='text/x-dsrc'>",
+ " <comment>D source code</comment>",
+ " <sub-class-of type='text/plain'/>",
+ " <glob pattern='*.d'/>",
+ " <glob pattern='*.di'/>",
+ " </mime-type>",
- \"</mime-info>\"
+ "</mime-info>"
]
}