Re: clang-format: auto-formatting the code base of systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Giacinto,

from a semantic point of view the source code should not change at all with clang-format.

There is only one problem with the custom preprocessor pragma for the "new" keyword, which needs to be excluded explicitly. See old pull request here:
https://github.com/systemd/systemd/pull/11254

Despite of that the whole source code can be reformatted. I tried compiling after reformatting, which ran all tests just fine.

But the formatting output has to be checked, as some code might better be reformatted by hand to enhance readability. But this is 'just' about source code style.

Still a test of binary equality of the compiled binaries would be nice, to assure that no meaning has been changed.

Thanks and Cheers, Sebastian

On 04.01.19 14:48, Giacinto Cifelli wrote:
Hello Sebastian,

- reformats all existing code, which requires review

this can be possibly be automated, by comparing the generated precompiled files.


Cheers, Sebastian Jennen


Regards,
Giacinto

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux