![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Typedefs | |
using | DisabledRegions = QMap<quint32, QQmlJS::SourceLocation> |
Enumerations | |
enum class | Directive { On , Off } |
Functions | |
static QLatin1StringView | detectNewLine (QStringView code) |
static quint32 | findLineStartOffset (QStringView m_code, qsizetype pos, QLatin1StringView newLine) |
static quint32 | findDirectiveEndOffset (QStringView m_code, qsizetype offset, QLatin1StringView newLine) |
static QQmlJS::SourceLocation | formRegion (QStringView code, const QQmlJS::SourceLocation &off, const QQmlJS::SourceLocation &on, QLatin1StringView newline) |
static QStringView | commentLineFromLoc (QStringView code, const QQmlJS::SourceLocation &loc, QLatin1StringView newline) |
DisabledRegions | identifyDisabledRegions (QStringView code, const QList< QQmlJS::SourceLocation > &comments) |
std::optional< Directive > | directiveFromComment (QStringView commentLine) |
Variables | |
static constexpr auto | directive = QLatin1StringView("qmlformat") |
static constexpr auto | onCmd = QLatin1StringView("on") |
static constexpr auto | offCmd = QLatin1StringView("off") |
static constexpr auto | commentStartString = QLatin1StringView("//") |
Definition at line 26 of file qqmldomformatdirectivescanner_p.h.
|
strong |
Enumerator | |
---|---|
On | |
Off |
Definition at line 27 of file qqmldomformatdirectivescanner_p.h.
|
static |
Definition at line 59 of file qqmldomformatdirectivescanner.cpp.
|
static |
Definition at line 17 of file qqmldomformatdirectivescanner.cpp.
|
nodiscard |
Definition at line 112 of file qqmldomformatdirectivescanner.cpp.
|
static |
Definition at line 35 of file qqmldomformatdirectivescanner.cpp.
|
static |
Definition at line 26 of file qqmldomformatdirectivescanner.cpp.
|
static |
Definition at line 51 of file qqmldomformatdirectivescanner.cpp.
|
nodiscard |
Definition at line 65 of file qqmldomformatdirectivescanner.cpp.
|
staticconstexpr |
Definition at line 14 of file qqmldomformatdirectivescanner.cpp.
|
staticconstexpr |
Definition at line 11 of file qqmldomformatdirectivescanner.cpp.
|
staticconstexpr |
Definition at line 13 of file qqmldomformatdirectivescanner.cpp.
|
staticconstexpr |
Definition at line 12 of file qqmldomformatdirectivescanner.cpp.