Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmljslogger.cpp File Reference

(d77693a028ce4c0faffafb612b8f4881d38e99ac)

#include <QtCore/qcompilerdetection.h>
#include <QtCore/qlist.h>
#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 dependency graph for qqmljslogger.cpp:

Go to the source code of this file.

Functions

static bool isMsgTypeLess (QtMsgType a, QtMsgType b)
 

Variables

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

Function Documentation

◆ isMsgTypeLess()

static bool isMsgTypeLess ( QtMsgType a,
QtMsgType b )
static

Definition at line 225 of file qqmljslogger.cpp.

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

Variable Documentation

◆ qmlAccessSingleton

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

Definition at line 60 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlAliasCycle

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

Definition at line 29 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlAttachedPropertyReuse

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

◆ qmlCompiler

◆ qmlDeferredPropertyId

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

◆ qmlDeprecated

◆ qmlDuplicatedName

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

Definition at line 46 of file qqmljslogger.cpp.

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

◆ qmlDuplicatePropertyBinding

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

◆ qmlImport

◆ qmlIncompatibleType

◆ qmlInheritanceCycle

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

◆ qmlInvalidLintDirective

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

Definition at line 58 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlMissingEnumEntry

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

Definition at line 63 of file qqmljslogger.cpp.

Referenced by QQmlJSTypePropagator::checkForEnumProblems().

◆ qmlMissingProperty

◆ qmlMissingType

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

◆ qmlMultilineStrings

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

Definition at line 50 of file qqmljslogger.cpp.

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

◆ qmlNonListProperty

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

◆ qmlPlugin

◆ qmlPrefixedImportType

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

◆ qmlReadOnlyProperty

◆ qmlRecursionDepthErrors

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

◆ qmlRequired

const QQmlSA::LoggerWarningId qmlRequired { "required" }

◆ qmlRestrictedType

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

◆ qmlSignalParameters

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

Definition at line 36 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlSyntax

◆ qmlSyntaxDuplicateIds

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

Definition at line 53 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlSyntaxIdQuotation

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

Definition at line 52 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlTopLevelComponent

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

Definition at line 61 of file qqmljslogger.cpp.

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

◆ qmlUncreatableType

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

◆ qmlUnqualified

const QQmlSA::LoggerWarningId qmlUnqualified { "unqualified" }

◆ qmlUnresolvedAlias

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

Definition at line 30 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlUnresolvedType

◆ qmlUnusedImports

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

◆ qmlUseProperFunction

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

Definition at line 59 of file qqmljslogger.cpp.

Referenced by QQmlJSLogger::defaultCategories().

◆ qmlVarUsedBeforeDeclaration

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

◆ qmlWith

const QQmlSA::LoggerWarningId qmlWith { "with" }

Definition at line 33 of file qqmljslogger.cpp.

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