1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00
cdt/core
Igor V. Kovalenko 09ab420f17 Actually apply type conversion in CPPEvaluation maybeApplyConversion()
Currently type of parameters of instantiated template function is ignored while
preparing activation record, which makes constexpr evaluation of instantiated
body use types of arguments in function call expression instead:

    template<typename T> bool f(T t) { return t > 0; }
    t<unsigned int>(-1); // CDT returns false because conversion is not done

Fix this by applying EvalTypeId to argument if cost of standard conversions is
Rank.CONVERSION to make sure createActivationRecord() would populate activation
record with argument values matching template parameter types.
2023-02-13 10:35:57 -05:00
..
org.eclipse.cdt.core Actually apply type conversion in CPPEvaluation maybeApplyConversion() 2023-02-13 10:35:57 -05:00
org.eclipse.cdt.core.linux [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.linux.aarch64 [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.linux.ppc64le [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.linux.x86_64 [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.macosx [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.native [releng] Update to latest maven-compiler-plugin version 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.tests Apply truncation and sign-extension to result of initializer evaluation 2023-02-13 10:35:57 -05:00
org.eclipse.cdt.core.win32 [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.core.win32.x86_64 [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00
org.eclipse.cdt.ui Add basic support for c++20 three-way comparison operator 2023-01-28 10:52:07 -05:00
org.eclipse.cdt.ui.tests Mark DocCommentHighlightingTest as flaky 2023-01-30 14:55:55 -05:00
pom.xml [releng] Prepare repo for CDT 11.1.0 development 2022-12-09 12:24:55 -05:00