| 205 | |
| 206 | namespace { |
| 207 | QVector<SourceFormatterStyle> stylesFromLanguagePlugins() |
| 208 | { |
| 209 | QVector<KDevelop::SourceFormatterStyle> styles; |
| 210 | const auto loadedLanguages = ICore::self()->languageController()->loadedLanguages(); |
| 211 | for (auto* lang : loadedLanguages) { |
| 212 | const SourceFormatterItemList& languageStyles = lang->sourceFormatterItems(); |
| 213 | for (const SourceFormatterStyleItem& item: languageStyles) { |
| 214 | if (item.engine == QLatin1String("customscript")) { |
| 215 | styles << item.style; |
| 216 | } |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | return styles; |
| 221 | } |
| 222 | |
| 223 | namespace BuiltInStyles { |
| 224 | SourceFormatterStyle gnuIndentGnu() |
no test coverage detected