Skip to content
Commit 560c06ff authored by Benjamin Huth's avatar Benjamin Huth Committed by Benjamin Huth
Browse files

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.

BUG: 460870
FIXED-IN: 5.11.230400
parent f09f161f
Pipeline #280472 passed with stage
in 13 minutes and 45 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment