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
qlibrary.cpp File Reference

(e94a951862b7860c15e219dce48e60c9dc1dc3d2)

#include "qlibrary.h"
#include "qlibrary_p.h"
#include <q20algorithm.h>
#include <qbytearraymatcher.h>
#include <qdebug.h>
#include <qendian.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qjsondocument.h>
#include <qmutex.h>
#include <qoperatingsystemversion.h>
#include <qstringlist.h>
#include <private/qcoreapplication_p.h>
#include <private/qloggingregistry_p.h>
#include <private/qsystemerror_p.h>
#include "qcoffpeparser_p.h"
#include "qelfparser_p.h"
#include "qfactoryloader_p.h"
#include "qmachparser_p.h"
#include <qtcore_tracepoints_p.h>
#include <QtCore/q20map.h>
#include "moc_qlibrary.cpp"
Include dependency graph for qlibrary.cpp:

Go to the source code of this file.

Classes

class  QLibraryStore

Functions

 Q_TRACE_POINT (qtcore, QLibraryPrivate_load_entry, const QString &fileName)
 Q_TRACE_POINT (qtcore, QLibraryPrivate_load_exit, bool success)
static QLibraryScanResult qt_find_pattern (const char *s, qsizetype s_len, QString *errMsg)
static QLibraryScanResult findPatternUnloaded (const QString &library, QLibraryPrivate *lib)
static void installCoverageTool (QLibraryPrivate *libPrivate)
static void qlibraryCleanup ()
static bool qt_get_metadata (QLibraryPrivate *priv, QString *errMsg)
bool qt_debug_component ()

Variables

static constexpr bool PluginMustMatchQtDebug
static constexpr bool QtBuildIsDebug = true
static Q_CONSTINIT QBasicMutex qt_library_mutex
static Q_CONSTINIT QLibraryStoreqt_library_data = nullptr
static Q_CONSTINIT bool qt_library_data_once

Function Documentation

◆ findPatternUnloaded()

QLibraryScanResult findPatternUnloaded ( const QString & library,
QLibraryPrivate * lib )
static

Definition at line 216 of file qlibrary.cpp.

◆ installCoverageTool()

void installCoverageTool ( QLibraryPrivate * libPrivate)
static

Definition at line 282 of file qlibrary.cpp.

Referenced by QLibraryPrivate::load().

Here is the caller graph for this function:

◆ Q_TRACE_POINT() [1/2]

Q_TRACE_POINT ( qtcore ,
QLibraryPrivate_load_entry ,
const QString & fileName )

◆ Q_TRACE_POINT() [2/2]

Q_TRACE_POINT ( qtcore ,
QLibraryPrivate_load_exit ,
bool success )

◆ qlibraryCleanup()

void qlibraryCleanup ( )
static

Definition at line 378 of file qlibrary.cpp.

References QLibraryStore::cleanup().

Here is the call graph for this function:

◆ qt_debug_component()

bool qt_debug_component ( )

Definition at line 1164 of file qlibrary.cpp.

◆ qt_find_pattern()

QLibraryScanResult qt_find_pattern ( const char * s,
qsizetype s_len,
QString * errMsg )
static

Definition at line 167 of file qlibrary.cpp.

◆ qt_get_metadata()

bool qt_get_metadata ( QLibraryPrivate * priv,
QString * errMsg )
static

Definition at line 680 of file qlibrary.cpp.

Variable Documentation

◆ PluginMustMatchQtDebug

constexpr bool PluginMustMatchQtDebug
staticconstexpr
Initial value:
=
static constexpr OSType currentType()
Returns the current OS type without constructing a QOperatingSystemVersion instance.

Definition at line 46 of file qlibrary.cpp.

Referenced by QLibraryPrivate::updatePluginState().

◆ qt_library_data

Q_CONSTINIT QLibraryStore * qt_library_data = nullptr
static

Definition at line 332 of file qlibrary.cpp.

◆ qt_library_data_once

Q_CONSTINIT bool qt_library_data_once
static

Definition at line 333 of file qlibrary.cpp.

◆ qt_library_mutex

Q_CONSTINIT QBasicMutex qt_library_mutex
static

Definition at line 331 of file qlibrary.cpp.

◆ QtBuildIsDebug

constexpr bool QtBuildIsDebug = true
staticconstexpr

Definition at line 56 of file qlibrary.cpp.

Referenced by QLibraryPrivate::updatePluginState().