HomePhabricator

Bump to clang-11 and clang-format-11

Description

Bump to clang-11 and clang-format-11

Summary:
This bumps the clang CI version as well as the clang-format linter. We keep both in sync so we prevent inconsistency hazard especially with clang-tidy.

The clang-format update introduce a couple changes:

  • nested ternary operators are now aligned by the colon character
  • Variadic template ellipses have no space anymore, which requires a change to the lint-format-strings.py false positive list.

Depends on D11105.

Test Plan:
With Clang:

ninja all check

arc lint --everything

Run the CI builds for the sanitizers.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D11106

Details

Provenance
FabienAuthored on Feb 24 2022, 13:04
FabienPushed on Feb 24 2022, 16:12
Reviewer
Restricted Project
Differential Revision
D11106: Bump to clang-11 and clang-format-11
Parents
rABC44e648fe4ba0: [LINTER] Remove LogPrintf from the false positive list in linrt-format-strings.
Branches
Unknown
Tags
Unknown