Add currently best clang-format configuration to repository?

Chris Johns chrisj at rtems.org
Thu Jul 6 04:46:56 UTC 2023


On 6/7/2023 11:59 am, Gedare Bloom wrote:
> On Wed, Jul 5, 2023 at 5:27 PM Chris Johns <chrisj at rtems.org> wrote:
>>
>> On 6/7/2023 4:21 am, Gedare Bloom wrote:
>>> OK I will prepare something soon. I have my WIP version at
>>> https://git.rtems.org/gedare/rtems.git/tree/_clang-format?h=test-reformat
>>>
>>> I think the format file itself should be just about stable. I will
>>> make one more test and check of it within the next few days, and then
>>> send the patch hopefully early next week.
>>
>> How will the version of clang-format we need be handled?
>>
>> Will an older version complain if our style is used with it? I am concerned I
>> use and trust the output however I make a mistake and use an old clang-format
>> that does not generate the correct format. I doubt I would spot that happening
>> when reviewing the output.
>>
> Certain (new) options in the style file will/can trigger an error that
> terminates the reformatting in (older) versions of clang-format that
> don't support the given option. I think we would be in that territory
> with our style.

Sounds good.

Chris


More information about the devel mailing list