Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 09:20:31

0001 // Copyright (C) 2022 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QMALLOC_H
0006 #define QMALLOC_H
0007 
0008 #include <QtCore/qcompilerdetection.h>
0009 #include <QtCore/qtconfigmacros.h>
0010 #include <QtCore/qtcoreexports.h>
0011 
0012 #include <cstddef> // size_t
0013 
0014 #if 0
0015 #pragma qt_class(QtMalloc)
0016 #pragma qt_sync_stop_processing
0017 #endif
0018 
0019 QT_BEGIN_NAMESPACE
0020 
0021 Q_CORE_EXPORT void *qMallocAligned(size_t size, size_t alignment) Q_ALLOC_SIZE(1);
0022 Q_CORE_EXPORT void *qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment) Q_ALLOC_SIZE(2);
0023 Q_CORE_EXPORT void qFreeAligned(void *ptr);
0024 
0025 QT_END_NAMESPACE
0026 
0027 #endif // QMALLOC_H