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

Function stylesFromLanguagePlugins

plugins/customscript/customscript_plugin.cpp:207–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206namespace {
207QVector<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
223namespace BuiltInStyles {
224SourceFormatterStyle gnuIndentGnu()

Callers 1

predefinedStylesMethod · 0.85

Calls 3

loadedLanguagesMethod · 0.80
languageControllerMethod · 0.80
sourceFormatterItemsMethod · 0.80

Tested by

no test coverage detected