| 255 | } |
| 256 | |
| 257 | SourceFormatterStyle 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 | |
| 273 | SourceFormatterStyle kdevFormatSource() |
| 274 | { |
no test coverage detected