MCPcopy Create free account
hub / github.com/KDE/kdevelop / clangFormat

Function clangFormat

plugins/customscript/customscript_plugin.cpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257SourceFormatterStyle clangFormat()
258{
259 SourceFormatterStyle result(QStringLiteral("clang_format"));
260 result.setCaption(i18n("Clang Format"));
261 result.setContent(QStringLiteral("clang-format -assume-filename=\"$FILE\""));
262 result.setUsePreview(false);
263 result.setDescription(i18n("Description:<br /><br />"
264 "<b>clang-format</b> is an automatic source formatter by the LLVM "
265 "project. It supports a variety of formatting style options via "
266 "a <b>.clang-format</b> configuration file, usually located in "
267 "the project root directory."));
268
269 result.setMimeTypes(ISourceFormatter::mimeTypesSupportedByBuiltInStyles());
270 return result;
271}
272
273SourceFormatterStyle kdevFormatSource()
274{

Callers 1

predefinedStylesMethod · 0.85

Calls 5

setCaptionMethod · 0.80
setUsePreviewMethod · 0.80
setMimeTypesMethod · 0.80
setContentMethod · 0.45
setDescriptionMethod · 0.45

Tested by

no test coverage detected