Skip to content

Draft: check-style: Add support for clang-format-18

Tommaso Pecorella requested to merge tommypec/ns-3-dev:clang-format-18 into master

Perhaps a more future-proof solution would be to check the minimum clang-format version, maybe the newer versions have to be checked to not add backward glitches.

clang-format-18 seems to behave well - and if anybody is wondering, homebred upgraded my clang-format to 18.1.0rc

EDIT (Eduardo): clang-format-18 introduces incompatibilities with previous versions of clang-format. In order to ensure that all versions produce consistent formatting, some pieces of code have to be reformatted. These steps are included in the following MRs in addition to this MR.

Steps to Harmonize the Coding Style for pre- and post- clang-format-18

  • Remove redundant semicolons: !1941
  • Add guidelines for comments in closing braces: !2070
Edited by Eduardo Almeida

Merge request reports

Loading