[cfe-dev] Repeated clang-format'ting keeps changing code / use of clang-format in CI

Sebastian Pipping via cfe-dev cfe-dev at lists.llvm.org
Fri Jul 26 13:04:05 PDT 2019

Hello again,

a quick update for anyone who wondered the same and ran into my previous

For a workaround, troublesome code can be wrapped by…

  // clang-format off
  // clang-format on

…for C++ or…

  /* clang-format off */
  /* clang-format on */

…for C to disable re-formatting of that section of code.  That way,
clang-format produces stable results and becomes suitable for during CI.



More information about the cfe-dev mailing list