Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 10.0.0
-
Windows 10 22H2, Qt 6.5.0 MSVC 2019 x64
-
-
7c1f2ea16 (10.0)
Description
- ClangFormat settings:
- Formatting mode: "Indenting only"
- Override Clang Format configuration file: False
- Current settings: "Qt [built-in]"
See attached project. Auto-indentation produces the following, but not if the QML_* macros are removed:
#ifndef MYSINGLETON_H #define MYSINGLETON_H #include <QQmlEngine> class MySingleton : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON public: explicit MySingleton(QObject *parent = nullptr) : QObject(parent) {} }; #endif // MYSINGLETON_H
Attachments
For Gerrit Dashboard: QTCREATORBUG-29086 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
474353,5 | ClangFormat: Fix autoindentation for QML_ and Q_ macros | 10.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |