How can Eclipse CDT Indexer be configured, in order to recognize all the new features in C++20 and above

Viewed 80

Current version (2022-03 (4.23.0)) of Eclipse CDT indexer does not recognize new features which are included in C++20 and above, like Concepts.

This results in:

  • Not being able to view the keywords (and possibly other parts) of those features in highlighted mode.
  • While the compiler is OK with those features, Eclipse editor identify them as syntax errors where ever they are defined/declared and also mark them as errors (with a red line under them) where ever they are used

This is a similar question to Eclipse CDT Indexer does not fully recognize c++11

and Eclipse CDT indexer does not know C++11 containers

How ever the version of C++ is different and I have tested all of the suggestions in the answers for those questions and none of them worked for this particular case.

More over, I am after a more general solution. I also remember having a similar issue with a new C++ feature in an older Eclipse version, which was solved with the newer versions of Eclipse.

Considering this lag of conformity with new standards of the language, is there any solution/work-around which could potentially solve the issue from now on?

I also appreciate any solution for this particular case, C++ Constraints and concepts https://en.cppreference.com/w/cpp/language/constraints.

0 Answers
Related