Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight new C++20 Concepts keywords ("concept" and "requires") #441

Closed
HighCommander4 opened this issue Jan 21, 2020 · 2 comments
Closed

Comments

@HighCommander4
Copy link

HighCommander4 commented Jan 21, 2020

In the following code, which compiles with clang trunk in -std=c++2a mode:

template <typename T>
concept Fooable = requires (T t) { t.foo(); };

template <typename T> requires Fooable<T>
void bar(T t) {
  t.foo();
}

the concept keyword and both instances of the requires keyword should be highlighted as keywords.

@HighCommander4
Copy link
Author

Looks like this is covered (along with other C++20 keywords) in #396.

@jeff-hykin
Copy link
Owner

Thanks for looking through the other issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants