|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Xen Coding style and clang-format
Hi Viktor, On 7/29/19 1:21 PM, Viktor Mitin wrote: On Mon, Jul 29, 2019 at 1:49 PM Julien Grall <julien.grall@xxxxxxx> wrote:On 7/29/19 10:13 AM, Viktor Mitin wrote:On Fri, Jul 26, 2019 at 3:50 PM Julien Grall <julien.grall@xxxxxxx> wrote:It is unknown how difficult it would be to implement that with clang-format, however, it can be analyzed.... but the goal of this discussion is to understand the limitations of Clang-format and whether a Coding Style change may be easier.It is not so easy to do, so it may take a time to investigate every the case. There must be a documentation for clang-format to explain the default coding style and way to tweak it, right? Could we get a pointer to it?
Do you have a pointer to the LLVM style?As I pointed out in a different thread, it woudl be easier to start from an existing coding style (LLVM, BSD...) and decide whether you want to fully adopt it or make changes. So someone needs to be pick one and look at the difference in style with Xen. It seems you already done that job as you tweak it for Xen. Do you have a write-up of the differences? I am not sure why clang-format decided to format like that. Do you know why?The reason is that there are two strings in one line. It would not change it if it were not "arm,psci-1.0""\0", but "arm,psci-1.0\0".I would like to see the exact part of the clang-format coding style documentation that mention this requirements... The more that in an example above (copied below for simplicity), there are two strings in on line.The closest found seems BinPackParameters BinPackArguments, however, it is about function calls according to manual... Above, you mention the work is based on the LLVM coding style. Is there anything in that coding style about the string?
What's the LLVM coding style policy about this? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |