https://bugs.kde.org/show_bug.cgi?id=460870
Benjamin Huth <benjamin-h...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In| |5.11.230400 Status|CONFIRMED |RESOLVED Latest Commit| |https://invent.kde.org/kdev | |elop/kdevelop/commit/560c06 | |ffb01dff577b58e3f2026ece17c | |49a0ed0 Resolution|--- |FIXED --- Comment #3 from Benjamin Huth <benjamin-h...@t-online.de> --- Git commit 560c06ffb01dff577b58e3f2026ece17c49a0ed0 by Benjamin Huth, on behalf of Benjamin Huth. Committed on 04/12/2022 at 11:26. Pushed by igorkushnir into branch 'master'. Code completion: Fix '.' to '->' for some cases There are some situations where KDevelop erroneously replaces a '.' with a '->', e.g. for floating point numbers some specific aggregate initializers. This fixes this (at least for some situations) by checking if clang reports a parse issue with a dot-to-arrow substitution. A new unit test is added to check the correct behaviour for the situation described in bug 460870. To check this, the code completion unit tests needed to be extended a bit: It is now possible to pass the expected code to the test that is then compared with the actual result. FIXED-IN: 5.11.230400 M +19 -4 plugins/clang/codecompletion/context.cpp M +69 -20 plugins/clang/tests/test_codecompletion.cpp https://invent.kde.org/kdevelop/kdevelop/commit/560c06ffb01dff577b58e3f2026ece17c49a0ed0 -- You are receiving this mail because: You are watching all bug changes.