anonymouspc wrote:

Still has bug.

Before (Matrix.h):
```cpp
#define EIGEN_MAKE_TYPEDEFS(Size, SizeSuffix)                    \
  /** \ingroup matrixtypedefs */                                 \
  /** \brief \cpp11 `Size`×`Size` matrix of type `Type`.*/ \
  template <typename Type>                                       \
  using Matrix##SizeSuffix = Matrix<Type, Size, Size>;           \
```

Version (updated to newest after this PR, build from souce, Linux):
```sh
clang-format --version
clang-format version 22.0.0git (https://github.com/llvm/llvm-project 
f8f6965ceece9e330ddb66db5f402ecfb5e3ad34)
```

Command:
```
clang-format --style="{SkipMacroDefinitionBody: true}" -i Matrix.h
```

After:
```cpp
#define EIGEN_MAKE_TYPEDEFS(Size, SizeSuffix) // <-- NO '\' HERE!
/** \ingroup matrixtypedefs */                                 \
  /** \brief \cpp11 `Size`&times;`Size` matrix of type `Type`.*/ \
  template <typename Type>                                       \
  using Matrix##SizeSuffix = Matrix<Type, Size, Size>;           \
```

I tried best to reduce it into this case, you may reduce it further :)
*Thank you :)*


https://github.com/llvm/llvm-project/pull/154787
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to