aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils_p.h
Commit message (Collapse)AuthorAgeFilesLines
* qmllint: allow plugins to set default category levelSami Shalayel2024-10-291-0/+1
| | | | | | | | Add a defaultLevel value to the .json file shipped with the plugins that allow plugins to set the default level of their categories. Change-Id: I4a13366ce705ba104414b41e729d12769ab83821 Reviewed-by: Olivier De Cannière <[email protected]>
* qmlls: follow .qmllint.ini warning configurationsSami Shalayel2024-08-011-0/+11
| | | | | | | | | | | | | Move the methods used to set the linting category level from qmllint/main.cpp to qqmljsloggingutils{.cpp,_p.h} so that qmlls can reuse them to follow .qmllint.ini warning configuration files. Also add early returns to the code of updateLogLevels. Pick-to: 6.8 6.7 Fixes: QTBUG-127602 Change-Id: I12919226c340a2c7a16aac6cd319ca2483611530 Reviewed-by: Fabian Kosmale <[email protected]>
* Remove the use of Q_QMLCOMPILER_PRIVATE_EXPORTAlexey Edelev2024-01-091-1/+1
| | | | | | Task-number: QTBUG-117983 Change-Id: I893ba2a6c83af92d65d843b6a37bb14c6c1e45bf Reviewed-by: Ulf Hermann <[email protected]>
* QQmlSA: Don't expose QQmlJS namespaceFabian Kosmale2023-09-211-0/+2
| | | | | | | | | | | | | QQmlSA is meant as the public namespace, QQmlJS is (at least currently) completely internal. However, LoggerWarningID currently only existed in QQmlJS. Move it into QQmlSA, add some minimal class documentation and add a typedef in QQmlJS (inside a private header) to avoid the need to modify all users. Pick-to: 6.6.0 6.6 Change-Id: Icff860c92054ac810c6e15eb26090d38fbc2c965 Reviewed-by: Ulf Hermann <[email protected]>
* QmlCompiler: Change it to public moduleFabian Kosmale2023-09-011-0/+1
| | | | | | | | | | | | | It now has public API, and users shouldn't need to link against QmlCompilerPrivate to gain access to that API. Change some includes to avoid syncqt complaints, and remove a superfluous const to avoid pedantic warnings. Pick-to: 6.6 Change-Id: I00ac8713f6bd9d1437300bc833cf16b62216caa0 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* QmlCompiler: Make LoggerCategory private againFabian Kosmale2023-08-301-0/+32
| | | | | | | | | | | | It is not needed by the QQmlSA API. Additionally, remove the comparison operator for LoggerCategory and LoggerId, and replace its users by getting the id from the category before comparing. Pick-to: 6.6 Change-Id: I7747b09b941cfd5326b95d2ee2f78b0ee10991d3 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Semih Yavuz <[email protected]> Reviewed-by: Olivier De Cannière <[email protected]>
* QmlCompiler: Initialize all members of LoggerCategoryPrivateUlf Hermann2023-06-051-1/+1
| | | | | | Coverity-Id: 408272 Change-Id: I0de8651ca3325d487dbd8c0ac04bdb814242aef7 Reviewed-by: Fabian Kosmale <[email protected]>
* QQmlSA: Create an abstraction layer for static analysisOlivier De Cannière2023-05-301-0/+73
This patch adds abstractions for QML Elements, Bindings, Methods and Properties. This abstraction layer avoids exposing internal details and should be more suited for static analysis tasks. It is now possible to write qmllint plugins without including private headers. As a drive-by, change tst_qmllint:verifyJsRoot to open files in text mode instead of binary. This fixes an issue where line endings cause issues on Windows. Fixes: QTBUG-102276 Change-Id: I6b6e53f1e0078734a18f3aa51807fbe875b375f0 Reviewed-by: Fabian Kosmale <[email protected]>