aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangactivationsequencecontextprocessor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use QString::size() instead QString::length()hjk2025-11-131-2/+2
| | | | | | | Minor gain in debug builds and when stepping. Change-Id: I2540d309661e4babfd7331b068c17657ded2a098 Reviewed-by: David Schulz <david.schulz@qt.io>
* Close existing function hintsChristian Kandeler2025-06-201-0/+5
| | | | | | | | | | ... upon entering a lambda context. The hint of the surrounding call is not applicable in the lambda body or its parameters. Fixes: QTCREATORBUG-33048 Change-Id: Ie65479fb417c0babccad0533f421fed36ab3eaea Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: pass a document instead of a cursor to Utils::Text::textAtDavid Schulz2025-01-131-2/+1
| | | | | | | | None of the additional information by the cursor was used and almost all usages of the function created a text cursor for calling this function. Change-Id: I2667103738d159b33b7769d1934c435e45bd1bdd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ClangCodeModel: Fix context processorChristian Kandeler2024-04-161-1/+1
| | | | | | | | | | Checking for potential include file completion should only consider string literals, not number literals. Fixes: QTCREATORBUG-30607 Change-Id: Ibfb422f1d8be5a5d30489383ecbc359f5ea4a2a9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ClangCodeModel: Remove libclang-based completion and function hintsChristian Kandeler2022-05-021-7/+0
| | | | | Change-Id: I742fb14b1aba3ba1f35a5c80bf553d2a735cac48 Reviewed-by: David Schulz <david.schulz@qt.io>
* ClangCodeModel: Use clangd for completion and function hintChristian Kandeler2021-08-231-26/+36
| | | | | Change-Id: I80160f3a40da18ac178682afe6caba5e5af6e3eb Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix build with Qt6Eike Ziller2021-01-211-2/+3
| | | | | | | | | Some type issues (int vs long long, int vs QFont::Weight), no "midRef" any more. Task-number: QTCREATORBUG-24098 Change-Id: Id39f70edc14832baaeebb2572bca5491deadaf1d Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* ClangCodeModel: Fix header file completion weirdnessChristian Kandeler2021-01-071-1/+16
| | | | | | | | | | | | ... when completing right after a dot. It's unclear why the code uses half-baked heuristics all over the place instead of simply employing the lexer (which is also used at some point) for everything. For now, use it to determine the correct starting location of string literals. Fixes: QTCREATORBUG-25154 Change-Id: I14c4d71c4a9bc3e2407688ed9c908d1c99155c76 Reviewed-by: David Schulz <david.schulz@qt.io>
* BinEditor/ClangCodeModel: Remove non-uses of #include <QRegExp>hjk2020-06-111-1/+0
| | | | | | Task-number: 24098 Change-Id: I58a52ad3c384cc945799ad73e5d3ce392245cd50 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Clang: Treat brace initialization as constructor completionIvan Donchevskii2018-08-211-3/+3
| | | | | | | | | Try to complete constructor after left brace with fallback to normal completion. Task-number: QTCREATORBUG-20957 Change-Id: I6c33790a3ee1e623a3d8abe9a44cfd821b6f3106 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Fix completion after qualification (::)Nikolai Kosjar2017-10-191-4/+8
| | | | | | | | | | | | | | | | | | | | | | ...and maybe other cases. Since Clang: fix findStartOfName handling commit 82d0650b116e0607e24021b0930e57759c53b449 the proposal's base position was calculated wrong. As a result, an early return triggert in CodeAssistantPrivate::displayProposal (call to newProposal->hasItemsToPropose(prefix, reason)) and no completions were displayed. Fix by ensuring that the added code from the mentioned commit is only called when needed, namely only for function expressions. Task-number: QTCREATORBUG-19083 Change-Id: I8f23c9b7186f9d81159939c8b3ef475a09bbe760 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* Clang: fix findStartOfName handlingIvan Donchevskii2017-09-051-0/+23
| | | | | | | ... of templates and qualified names Change-Id: Ic8c2dec35cb74484f474c0c608857e7cf48c7468 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Clang: Use "clang" prefix plugin filesNikolai Kosjar2015-11-301-0/+272
...for consistency and to avoid future file name clashes. Change-Id: If595c8debfa1ceb01a1bb0ed34649fa513660503 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>