Issue 90976
Summary BinPackArguments doesn't seem to work correctly.
Labels new issue
Assignees
Reporter monder2
    hello,

I'm using clang-format 17, And I want to create custom style. I use  **-style=file**. and in my directory I create  .clang-format file with all configurations. 
the Clang-Format Style Options: **AllowAllArgumentsOnNextLine** 
the BinPackArguments  configuration where If a function call or braced initializer list doesn’t fit on a line, allow putting all arguments onto the next line.

I want the clang-format to accept the two forms of the function( no matter if we declare the arguments of a function on multiple lines or not we don't get an error).
so if **BinPackArguments  =false** and  **BinPackParameters=false**
the function (declaration or parameters) can be like this:
  ```
  callFunction( a, b, c, d);
  ```
  or this :
  ```
  callFunction(a,
               b,
               c,
               d);
  ```

but for me it doesn't work
here are some screenshots:
**Configurations file:**
![configuration](https://github.com/llvm/llvm-project/assets/154244858/37e2b192-923c-4be4-817f-fad2ecbbc45f)
**Code Example:**
![functions](https://github.com/llvm/llvm-project/assets/154244858/16b05365-ab08-493f-b2fb-2f97612fd69f)
**C-lang Correction recieved:**
![error](https://github.com/llvm/llvm-project/assets/154244858/afbf315e-2115-4c8a-bc40-28a02ee3b891)

thanks in advance.


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to