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

Method predefinedStyles

plugins/customscript/customscript_plugin.cpp:302–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300} // unnamed namespace
301
302QVector<SourceFormatterStyle> CustomScriptPlugin::predefinedStyles() const
303{
304 static const QVector<SourceFormatterStyle> builtInStyles = {
305 BuiltInStyles::kdevFormatSource(),
306 BuiltInStyles::clangFormat(),
307 BuiltInStyles::gnuIndentGnu(),
308 BuiltInStyles::gnuIndentKr(),
309 BuiltInStyles::gnuIndentOrig(),
310 };
311
312 auto styles = stylesFromLanguagePlugins();
313 styles += builtInStyles; // Use operator+= rather than operator+ to avoid detaching.
314 return styles;
315}
316
317bool CustomScriptPlugin::hasEditStyleWidget() const
318{

Callers

nothing calls this directly

Calls 6

kdevFormatSourceFunction · 0.85
clangFormatFunction · 0.85
gnuIndentGnuFunction · 0.85
gnuIndentKrFunction · 0.85
gnuIndentOrigFunction · 0.85

Tested by

no test coverage detected