Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmldomformatdirectivescanner.cpp File Reference

(a07e9360ed4b31c0088f7b6d1a99dd016c3c31aa)

#include "qqmldomformatdirectivescanner_p.h"
#include <QtCore/QLoggingCategory>
Include dependency graph for qqmldomformatdirectivescanner.cpp:

Go to the source code of this file.

Namespaces

namespace  QmlFormat

Functions

static QLatin1StringView QmlFormat::detectNewLine (QStringView code)
static quint32 QmlFormat::findLineStartOffset (QStringView m_code, qsizetype pos, QLatin1StringView newLine)
static quint32 QmlFormat::findDirectiveEndOffset (QStringView m_code, qsizetype offset, QLatin1StringView newLine)
static QQmlJS::SourceLocation QmlFormat::formRegion (QStringView code, const QQmlJS::SourceLocation &off, const QQmlJS::SourceLocation &on, QLatin1StringView newline)
static QStringView QmlFormat::commentLineFromLoc (QStringView code, const QQmlJS::SourceLocation &loc, QLatin1StringView newline)
DisabledRegions QmlFormat::identifyDisabledRegions (QStringView code, const QList< QQmlJS::SourceLocation > &comments)
std::optional< DirectiveQmlFormat::directiveFromComment (QStringView commentLine)

Variables

static constexpr auto QmlFormat::directive = QLatin1StringView("qmlformat")
static constexpr auto QmlFormat::onCmd = QLatin1StringView("on")
static constexpr auto QmlFormat::offCmd = QLatin1StringView("off")
static constexpr auto QmlFormat::commentStartString = QLatin1StringView("//")