Skip to content

Commit

Permalink
Fix syntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
camila314 committed Feb 1, 2025
1 parent f12a7dc commit 88e57c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions C++/syntax_test_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3151,18 +3151,18 @@ concept has_foo = requires(T t) {
/* ^^^^^^^ meta.concept.c++ entity.name.concept.c++ */
/* ^^^^^^^^^^^^^^^ meta.concept.c++ meta.constraint.c++ */
/* ^^^^^ meta.function.parameters.c++ */
/* ^ meta.block meta.function.c++ */
/* ^ meta.function.c++ meta.block.c++ */
t.foo();
/* ^^^^^^^^ meta.concept.c++ meta.constraint.c++ meta.block.c++ meta.function.c++ */
/* ^^^^^^^^ meta.concept.c++ meta.constraint.c++ meta.function.c++ meta.block.c++ */
} && std::move_constructible<T>;
/*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.concept.c++ meta.constraint.c++ */

template <typename C>
/* <- meta.template.c++ keyword.declaration.template.c++ */
void foo() requires std::same_as<C, void>
/* <- storage.type.c */
/* ^^^^ meta.function.c++ entity.name.function.c++ */
/* ^^^^^^^^ meta.function.c++ meta.constraint.c++ storage.modifier.c++ */
/* ^^^ meta.function.c++ entity.name.function.c++ */
/* ^^^^^^^^ meta.function.c++ meta.constraint.c++ storage.modifier.c++ */
/* ^^^^^^^^^^^^^^^^^^^^^ meta.function.c++ meta.constraint.c++ */
{
return;
Expand All @@ -3174,7 +3174,7 @@ template <typename C> requires std::same_as<C, void>
/* ^^^^^^^^^^^^^^^^^^^^^ meta.constraint.c++ */
void bar()
/* <- storage.type.c */
/* ^^^^ meta.function.c++ entity.name.function.c++ */
/* ^^^ meta.function.c++ entity.name.function.c++ */
{
return;
}
Expand Down

0 comments on commit 88e57c8

Please sign in to comment.