Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Third Party committed Nov 21, 2023
1 parent cf26c00 commit c702880
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions include/llama/StructName.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ namespace llama
auto size = nameArray.size();
#endif

if (size > 3) {
if(size > 3)
{
// remove spaces between closing template angle brackets and after commas
auto e = nameArray.begin() + size;
for (auto b = nameArray.begin(); b < e - 2; b++) {
if ((b[0] == '>' && b[1] == ' ' && b[2] == '>') || (b[0] == ',' && b[1] == ' ')) {
for(auto b = nameArray.begin(); b < e - 2; b++)
{
if((b[0] == '>' && b[1] == ' ' && b[2] == '>') || (b[0] == ',' && b[1] == ' '))
{
constexprCopy(b + 2, e, b + 1);
e--;
}
Expand Down
4 changes: 3 additions & 1 deletion tests/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ namespace
} // namespace ns
} // namespace

struct A{};
struct A
{
};

TEST_CASE("qualifiedTypeName")
{
Expand Down

0 comments on commit c702880

Please sign in to comment.