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

Method format

kdevplatform/shell/sourceformattercontroller.cpp:498–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498QString SourceFormatterController::FileFormatter::format(const QString& text, const QString& leftContext,
499 const QString& rightContext) const
500{
501 Q_ASSERT(m_formatter);
502 return m_formatter->formatSourceWithStyle(m_style, text, m_url, m_mimeType, leftContext, rightContext);
503}
504
505/**
506 * @return the name of kate indentation mode for @p mime, e.g. "cstyle", "python"

Callers 15

contextMenuEventMethod · 0.80
formatFileMethod · 0.80
beautifySourceMethod · 0.80
beautifyLineMethod · 0.80
generateNewTextMethod · 0.80
quoteFunction · 0.80
invokeFunction · 0.80
_updateMethod · 0.80
printableQByteArrayFunction · 0.80

Calls 1

formatSourceWithStyleMethod · 0.45

Tested by 1