Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmljslogger.cpp File Reference
#include <private/qqmljslogger_p.h>
#include <private/qqmlsa_p.h>
#include <QtQmlCompiler/qqmljsloggingutils.h>
#include <QtCore/qglobal.h>
#include <QtCore/qfile.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qlist.h>
+ Include dependency graph for qqmljslogger.cpp:

Go to the source code of this file.

Functions

static bool isMsgTypeLess (QtMsgType a, QtMsgType b)
 

Variables

const QQmlJS::LoggerWarningId qmlRequired { "required" }
 
const QQmlJS::LoggerWarningId qmlAliasCycle { "alias-cycle" }
 
const QQmlJS::LoggerWarningId qmlUnresolvedAlias { "unresolved-alias" }
 
const QQmlJS::LoggerWarningId qmlImport { "import" }
 
const QQmlJS::LoggerWarningId qmlRecursionDepthErrors { "recursion-depth-errors" }
 
const QQmlJS::LoggerWarningId qmlWith { "with" }
 
const QQmlJS::LoggerWarningId qmlInheritanceCycle { "inheritance-cycle" }
 
const QQmlJS::LoggerWarningId qmlDeprecated { "deprecated" }
 
const QQmlJS::LoggerWarningId qmlSignalParameters { "signal-handler-parameters" }
 
const QQmlJS::LoggerWarningId qmlMissingType { "missing-type" }
 
const QQmlJS::LoggerWarningId qmlUnresolvedType { "unresolved-type" }
 
const QQmlJS::LoggerWarningId qmlRestrictedType { "restricted-type" }
 
const QQmlJS::LoggerWarningId qmlPrefixedImportType { "prefixed-import-type" }
 
const QQmlJS::LoggerWarningId qmlIncompatibleType { "incompatible-type" }
 
const QQmlJS::LoggerWarningId qmlMissingProperty { "missing-property" }
 
const QQmlJS::LoggerWarningId qmlNonListProperty { "non-list-property" }
 
const QQmlJS::LoggerWarningId qmlReadOnlyProperty { "read-only-property" }
 
const QQmlJS::LoggerWarningId qmlDuplicatePropertyBinding { "duplicate-property-binding" }
 
const QQmlJS::LoggerWarningId qmlDuplicatedName { "duplicated-name" }
 
const QQmlJS::LoggerWarningId qmlDeferredPropertyId { "deferred-property-id" }
 
const QQmlJS::LoggerWarningId qmlUnqualified { "unqualified" }
 
const QQmlJS::LoggerWarningId qmlUnusedImports { "unused-imports" }
 
const QQmlJS::LoggerWarningId qmlMultilineStrings { "multiline-strings" }
 
const QQmlJS::LoggerWarningId qmlSyntax { "syntax" }
 
const QQmlJS::LoggerWarningId qmlSyntaxIdQuotation { "syntax.id-quotation" }
 
const QQmlJS::LoggerWarningId qmlSyntaxDuplicateIds { "syntax.duplicate-ids" }
 
const QQmlJS::LoggerWarningId qmlCompiler { "compiler" }
 
const QQmlJS::LoggerWarningId qmlAttachedPropertyReuse { "attached-property-reuse" }
 
const QQmlJS::LoggerWarningId qmlPlugin { "plugin" }
 
const QQmlJS::LoggerWarningId qmlVarUsedBeforeDeclaration { "var-used-before-declaration" }
 
const QQmlJS::LoggerWarningId qmlInvalidLintDirective { "invalid-lint-directive" }
 
const QQmlJS::LoggerWarningId qmlUseProperFunction { "use-proper-function" }
 
const QQmlJS::LoggerWarningId qmlAccessSingleton { "access-singleton-via-object" }
 
const QQmlJS::LoggerWarningId qmlTopLevelComponent { "top-level-component" }
 
const QQmlJS::LoggerWarningId qmlUncreatableType { "uncreatable-type" }
 
const QQmlJS::LoggerWarningId qmlMissingEnumEntry { "missing-enum-entry" }
 

Function Documentation

◆ isMsgTypeLess()

static bool isMsgTypeLess ( QtMsgType  a,
QtMsgType  b 
)
static

Definition at line 223 of file qqmljslogger.cpp.

References QtCriticalMsg, QtDebugMsg, QtFatalMsg, QtInfoMsg, and QtWarningMsg.

Variable Documentation

◆ qmlAccessSingleton

const QQmlJS::LoggerWarningId qmlAccessSingleton { "access-singleton-via-object" }

Definition at line 58 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlAliasCycle

const QQmlJS::LoggerWarningId qmlAliasCycle { "alias-cycle" }

Definition at line 27 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlAttachedPropertyReuse

const QQmlJS::LoggerWarningId qmlAttachedPropertyReuse { "attached-property-reuse" }

◆ qmlCompiler

◆ qmlDeferredPropertyId

const QQmlJS::LoggerWarningId qmlDeferredPropertyId { "deferred-property-id" }

◆ qmlDeprecated

◆ qmlDuplicatedName

const QQmlJS::LoggerWarningId qmlDuplicatedName { "duplicated-name" }

Definition at line 44 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories(), and QQmlJSImportVisitor::visit().

◆ qmlDuplicatePropertyBinding

const QQmlJS::LoggerWarningId qmlDuplicatePropertyBinding { "duplicate-property-binding" }

◆ qmlImport

◆ qmlIncompatibleType

◆ qmlInheritanceCycle

const QQmlJS::LoggerWarningId qmlInheritanceCycle { "inheritance-cycle" }

◆ qmlInvalidLintDirective

const QQmlJS::LoggerWarningId qmlInvalidLintDirective { "invalid-lint-directive" }

Definition at line 56 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlMissingEnumEntry

const QQmlJS::LoggerWarningId qmlMissingEnumEntry { "missing-enum-entry" }

Definition at line 61 of file qqmljslogger.cpp.

Referenced by QQmlJSTypePropagator::checkForEnumProblems().

◆ qmlMissingProperty

◆ qmlMissingType

const QQmlJS::LoggerWarningId qmlMissingType { "missing-type" }

◆ qmlMultilineStrings

const QQmlJS::LoggerWarningId qmlMultilineStrings { "multiline-strings" }

Definition at line 48 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories(), and QQmlJSImportVisitor::visit().

◆ qmlNonListProperty

const QQmlJS::LoggerWarningId qmlNonListProperty { "non-list-property" }

◆ qmlPlugin

◆ qmlPrefixedImportType

const QQmlJS::LoggerWarningId qmlPrefixedImportType { "prefixed-import-type" }

◆ qmlReadOnlyProperty

◆ qmlRecursionDepthErrors

const QQmlJS::LoggerWarningId qmlRecursionDepthErrors { "recursion-depth-errors" }

◆ qmlRequired

const QQmlJS::LoggerWarningId qmlRequired { "required" }

◆ qmlRestrictedType

const QQmlJS::LoggerWarningId qmlRestrictedType { "restricted-type" }

◆ qmlSignalParameters

const QQmlJS::LoggerWarningId qmlSignalParameters { "signal-handler-parameters" }

Definition at line 34 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlSyntax

◆ qmlSyntaxDuplicateIds

const QQmlJS::LoggerWarningId qmlSyntaxDuplicateIds { "syntax.duplicate-ids" }

Definition at line 51 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlSyntaxIdQuotation

const QQmlJS::LoggerWarningId qmlSyntaxIdQuotation { "syntax.id-quotation" }

Definition at line 50 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlTopLevelComponent

const QQmlJS::LoggerWarningId qmlTopLevelComponent { "top-level-component" }

Definition at line 59 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories(), and QQmlJSImportVisitor::visit().

◆ qmlUncreatableType

const QQmlJS::LoggerWarningId qmlUncreatableType { "uncreatable-type" }

Definition at line 60 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories(), and QQmlJSImportVisitor::visit().

◆ qmlUnqualified

const QQmlJS::LoggerWarningId qmlUnqualified { "unqualified" }

◆ qmlUnresolvedAlias

const QQmlJS::LoggerWarningId qmlUnresolvedAlias { "unresolved-alias" }

Definition at line 28 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlUnresolvedType

◆ qmlUnusedImports

const QQmlJS::LoggerWarningId qmlUnusedImports { "unused-imports" }

◆ qmlUseProperFunction

const QQmlJS::LoggerWarningId qmlUseProperFunction { "use-proper-function" }

Definition at line 57 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlVarUsedBeforeDeclaration

const QQmlJS::LoggerWarningId qmlVarUsedBeforeDeclaration { "var-used-before-declaration" }

◆ qmlWith

const QQmlJS::LoggerWarningId qmlWith { "with" }

Definition at line 31 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories(), and QQmlJSImportVisitor::visit().