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

Function indentationMode

kdevplatform/shell/sourceformattercontroller.cpp:508–516  ·  view source on GitHub ↗

* @return the name of kate indentation mode for @p mime, e.g. "cstyle", "python" */

Source from the content-addressed store, hash-verified

506 * @return the name of kate indentation mode for @p mime, e.g. "cstyle", "python"
507 */
508static QString indentationMode(const QMimeType& mime)
509{
510 if (mime.inherits(QStringLiteral("text/x-c++src")) || mime.inherits(QStringLiteral("text/x-chdr")) ||
511 mime.inherits(QStringLiteral("text/x-c++hdr")) || mime.inherits(QStringLiteral("text/x-csrc")) ||
512 mime.inherits(QStringLiteral("text/x-java")) || mime.inherits(QStringLiteral("text/x-csharp"))) {
513 return QStringLiteral("cstyle");
514 }
515 return QStringLiteral("none");
516}
517
518QString SourceFormatterController::FileFormatter::addModeline(QString input) const
519{

Callers 1

addModelineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected