Skip to content

[clang-format] Wrong spacing around arithmetic operator? #102727

Closed
@prj-

Description

@prj-

I'm not sure these two should by formatted differently?

$ clang-format bug.c
v[num] = ((PetscReal)(numj)*HxdHy + (PetscReal)(numi)*HydHx);
v[num] = ((PetscReal)numj * HxdHy + (PetscReal)numi * HydHx);

This is with both version 18 and 20.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions