Issue |
120028
|
Summary |
[clang-format] Poorly formatted C++ initializers in a function call
|
Labels |
clang-format
|
Assignees |
|
Reporter |
corporateshark
|
Poor formatting [here](https://github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook-Second-Edition/blob/4147bf9292114e87e1b8b83ec7a7446ea4254b1e/Chapter11/06_FinalDemo/src/main.cpp#L881). Config used [.clang-format](https://github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook-Second-Edition/blob/4147bf9292114e87e1b8b83ec7a7446ea4254b1e/.clang-format).
```
buf.cmdDispatchThreadGroups(
{
1, 1, 1
},
{ .textures = {
lvk::TextureHandle(texLuminanceViews[0]),
lvk::TextureHandle(texAdaptedLuminance[0]),
lvk::TextureHandle(texAdaptedLuminance[1]),
} });
```
**Expected:**
```
buf.cmdDispatchThreadGroups(
{ 1, 1, 1 },
{ .textures = {
lvk::TextureHandle(texLuminanceViews[0]),
lvk::TextureHandle(texAdaptedLuminance[0]),
lvk::TextureHandle(texAdaptedLuminance[1]),
} });
```
or
```
buf.cmdDispatchThreadGroups(
{
1, 1, 1,
},
{ .textures = {
lvk::TextureHandle(texLuminanceViews[0]),
lvk::TextureHandle(texAdaptedLuminance[0]),
lvk::TextureHandle(texAdaptedLuminance[1]),
} });
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs