aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/clangutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Secure clang version cacheMarcus Tillmanns2025-11-251-0/+3
| | | | | Change-Id: I82ef544979b5fb241e2a79bac6f1d7c4a5a96383 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge remote-tracking branch 'origin/18.0'Eike Ziller2025-11-251-1/+4
|\ | | | | | | Change-Id: I7723f42b4ffc5355e26d017beb9031f0aab44969
| * ClangCodeModel: Support a misbehaving clangd variantChristian Kandeler2025-11-241-1/+4
| | | | | | | | | | | | | | | | | | | | Intel ships a clangd as part of its "oneAPI" environment. Add a workaround for that binary not supporting the "--version" flag, so it will work out of the box. Task-number: QTCREATORBUG-33763 Change-Id: I0cb25ba734177d1b61b8ce0fd73ee4cdc2801850 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Use QString::size() instead QString::length()hjk2025-11-131-1/+1
|/ | | | | | | Minor gain in debug builds and when stepping. Change-Id: I2540d309661e4babfd7331b068c17657ded2a098 Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Use Result<> for checkClangdVersionhjk2025-08-051-11/+7
| | | | | Change-Id: I62a8cba10fdd99ba9ca87c19777c7e6977529433 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ClangCodeModel: Bump minimum clangd versionChristian Kandeler2024-05-241-1/+1
| | | | | | | | | ... and throw away old workarounds. The current clangd version, to be shipped with Qt Creator 14, is 18.1, so we can safely bump the minimum version to 17. Change-Id: I74fd5997196d774b6c47dcb522284953ef82ad9c Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Fix build with MSVC with C++20Eike Ziller2024-02-281-1/+1
| | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-041-1/+1
| | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-041-1/+1
| | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Utils: Don't try to start clangd if path is emptyMarcus Tillmanns2023-03-281-0/+5
| | | | | Change-Id: I30d3279be81b66c16ee8081b09828aaa6bcd53e0 Reviewed-by: David Schulz <david.schulz@qt.io>
* Docker: validate clangd versionDavid Schulz2023-01-201-0/+66
Do not automatically setup a clangd that is too old and mark them as invalid if they are manually selected. Change-Id: Ie9662a8821df8fc678eabc4b8a08375723b4d1c3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>