https://bugs.kde.org/show_bug.cgi?id=469079

--- Comment #4 from Igor Kushnir <igor...@gmail.com> ---
(In reply to Eugene Shalygin from comment #3)
> Well, the IDE ceases to work as soon as you turn the C++20 mode on. As a
> workaround I provide those types as typedefs in the Language support/Defines
> page of the project settings dialog.
The failing KDevelop's tests use a default standard and C++14, so the issue
isn't limited to C++20. Does the standard version make a difference in your
case?
What do you typedef these types to?

> I'd supply a header file that defines those types basing on Clang version,
> which can be force included.
I agree that injecting type aliases would be safer than macros. Do you mean
this option
https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-include-file
?
Does the Clang version make a difference or only GCC's? If only GCC's, then I
think the header should be included `if (isCpp)`, similarly to
https://invent.kde.org/kdevelop/kdevelop/-/commit/35ea746ddd49e872998152cc157152c2cb5b86ea
.

The header file can be installed with KDevelop, but then the exact path to the
installed header would have to be found at run-time... Alternatively the header
file can be stored in resources and copied into a temporary file at run-time
(similarly to how the define files are stored in /tmp/kdevelop.*).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to